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
Say I have a <TimePickerModal />, and I want to use it to pick multiple times (eg a start and end time).
How can I reset the time picker state, after it has been used once?
Without being able to reset, the second time I'll try to use the picker, it will default to the previously picked time, instead of the default time, and most importantly, the minutes field will have the focus, instead of the hours field being focused, like it is the case on first use.
Even if I use it for a single time selection, it's weird that if the user wants to change his selection, the focus is on the minutes field, the second time he opens the modal.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have a
<TimePickerModal />
, and I want to use it to pick multiple times (eg a start and end time).How can I reset the time picker state, after it has been used once?
Without being able to reset, the second time I'll try to use the picker, it will default to the previously picked time, instead of the default time, and most importantly, the minutes field will have the focus, instead of the hours field being focused, like it is the case on first use.
Even if I use it for a single time selection, it's weird that if the user wants to change his selection, the focus is on the minutes field, the second time he opens the modal.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions