-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Use case
We are developing an app for a mountain rescue service, and many of the rescuers and users have reported frustration with how time input is handled using showTimePicker.
One of the required parameters of this method is initialTime. While that alone would not be a problem, the issue arises when using the input entry mode, which our users generally prefer over the dial mode. In this mode, users are forced to manually delete the pre-filled hour and minute values before they can enter the desired time.
This is how it looks when opened:

Here, when a user wants to enter a time, they first need to tap at the end of the hour field or long-press to select the entire value, delete it manually, and then type the desired hour. After that, the focus automatically moves to the minutes field, where the user again needs to manually delete the pre-filled value before entering the desired minutes. This extra step of having to clear the default time values is perceived by users as very frustrating and unnecessarily inconvenient.
Proposal
It would be very helpful if initialTime could be made optional, allowing the time picker in input mode to open with empty hour and minute fields. This way, users could immediately start typing their desired time without first having to clear the default values.
Alternatively, if initialTime must remain required, we propose improving the input behavior so that typing automatically replaces the pre-filled values without requiring the user to manually delete them first.
