Skip to content

When using timePicker, do not scroll to the selected time  #6545

@STsaruk

Description

@STsaruk
  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions