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
I'm using useState to get selectedDate and setSelectedDate and passing them to value and onChange. I'm using 12-hour time. When AM/PM is set to AM, I cannot type 0 or 12 into the hours field. If I type 0, the field will just be empty and display the placeholder. If I type 12, the field empties when I enter the 2 and it displays the placeholder. In both cases, onChange is not called when the field clears itself.
If I set the time to 12PM and then switch to AM, it works fine, but if it's already set to AM it doesn't work. If I unhide the native datetime picker I have a similar issue typing in there. But if I use the dropdown and select 12am it works fine.
I tried testing this out with just react-time-picker and I didn't run into this issue.
The text was updated successfully, but these errors were encountered:
I'm using useState to get
selectedDate
andsetSelectedDate
and passing them tovalue
andonChange
. I'm using 12-hour time. When AM/PM is set to AM, I cannot type 0 or 12 into the hours field. If I type 0, the field will just be empty and display the placeholder. If I type 12, the field empties when I enter the 2 and it displays the placeholder. In both cases,onChange
is not called when the field clears itself.If I set the time to 12PM and then switch to AM, it works fine, but if it's already set to AM it doesn't work. If I unhide the native datetime picker I have a similar issue typing in there. But if I use the dropdown and select 12am it works fine.
I tried testing this out with just
react-time-picker
and I didn't run into this issue.The text was updated successfully, but these errors were encountered: