We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1c6da0 commit 1edb6aeCopy full SHA for 1edb6ae
src/test/datepicker_test.test.tsx
@@ -720,6 +720,15 @@ describe("DatePicker", () => {
720
expect(input?.classList.contains(OUTSIDE_CLICK_IGNORE_CLASS)).toBe(true);
721
});
722
723
+ it("should apply the default outsideClickIgnoreClass when prop is falsy", () => {
724
+ const { container } = render(
725
+ <DatePicker outsideClickIgnoreClass={null as any} />,
726
+ );
727
+ const input = safeQuerySelector<HTMLInputElement>(container, "input");
728
+ fireEvent.focus(input);
729
+ expect(input?.classList.contains(OUTSIDE_CLICK_IGNORE_CLASS)).toBe(true);
730
+ });
731
+
732
it("should toggle the open status of calendar on click of the icon when toggleCalendarOnIconClick is set to true", () => {
733
const { container } = render(
734
<DatePicker
0 commit comments