Skip to content

Commit 3e3d80f

Browse files
fix: use undefined instead of null for outsideClickIgnoreClass prop
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 24c5e6b commit 3e3d80f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/datepicker_test.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,9 @@ describe("DatePicker", () => {
721721
});
722722

723723
it("should apply the default outsideClickIgnoreClass when prop is falsy", () => {
724-
const { container } = render(<DatePicker outsideClickIgnoreClass={null} />);
724+
const { container } = render(
725+
<DatePicker outsideClickIgnoreClass={undefined} />,
726+
);
725727
const input = safeQuerySelector<HTMLInputElement>(container, "input");
726728
fireEvent.focus(input);
727729
expect(input?.classList.contains(OUTSIDE_CLICK_IGNORE_CLASS)).toBe(true);

0 commit comments

Comments
 (0)