You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use the library as a date field, never showing the popper, by using open={false}.
When you click outside the input, an incorrect value (like "02/31/2000") isn't fixed (but when you use tab it is).
To Reproduce
<DatePicker
selected={value}
onChange={setValue}
open={false} // problem is caused by this setting
/>
Enter "02/31/2000" then press tab (this works, the input date is fixed)
Enter "02/31/2000" then click outside input (this doesn't work, notice how the input isn't updated)
Describe the bug
I use the library as a date field, never showing the popper, by using open={false}.
When you click outside the input, an incorrect value (like "02/31/2000") isn't fixed (but when you use tab it is).
To Reproduce
<DatePicker
selected={value}
onChange={setValue}
open={false} // problem is caused by this setting
/>
Codesandbox example.
Expected behavior
When I click outside the input, I expect the value to be fixed. Just like what happens when you press tab.
Desktop :
** Additional **
When you dont' use "open={false}", it works as expected.
The text was updated successfully, but these errors were encountered: