-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
When the timePicker input is empty, we have a complete list of times that we can select. This is convenient. When the time is already selected and we open the timePicker modal, the time selection is automatically scrolled to the selected time and, especially in the case of AM/PM, if PM is selected, it is not very clear that there is also AM until you start scrolling.
CleanShot.2023-05-09.at.11.31.57.mp4
What does the proposed API look like?
I propose to make a prop (scrollToCurrent for example), thanks to which if there is already a selected time, when opening the modal will not automatically scroll to the selected time, but it will be possible to show the full list, and the selected time will be highlighted