New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fields] Navigating between data and time value when clearing using Backspace #12809
Comments
Hey @emargin Take this example (** represents selected):
If you want to clear this field with Backspace from the front (
But what about if you select the year (as an example):
Would you expect the focus to shift left like this?
What about using @LukasTy This is quite an interesting topic. WDYT? |
This is an interesting idea that would be worth discussing. I'm adding this issue to the board so that we can discuss if having extra behavior here makes sense. 👌 |
The problem with just moving to the previous section is that is makes the experience very bad when you actually want to change just one section by remove its value and then typing (which is not the best way of doing it but probably something a lot of people are doing). Not sure what the best UX would be in this scenario honestly... This one is clearly a product choice, not a technical one, switching to the previous section is trivial is we decide to do it. |
Great insights @flaviendelangle. Those are exactly my fears and thoughts. Given:
When 1st Backspace is typed:
When 2nd Backspace is typed:
When 3rd Backspace is typed:
When 4th Backspace is typed:
When 5th Backspace is typed:
|
This one is probably quite safe to implement indeed |
@LukasTy @flaviendelangle i'd try to implement this if you do not mind and provide me some assistment |
Summary
The new version of DatePicker v6+ introduces new behavior for handling date and time values using arrows. At the same time, the behavior of clearing input also began to work differently, being limited to a specific section
Examples
Problem: When entering a time like 12:45 PM and trying to clear the input field using the BACKSPACE key, my focus is locked within each category. In total, my path to clearing a field looks like this:
BS BS <- BS BS <- BS BS*
Expected Behavior: When deleting a value from a TimePicker/ DatePicker I want the focus to automatically move to the next section, then my clear path would look like: BS BS BS BS BS BS*
BS - backspace click
<- left arrow click
Motivation
Make the user experience more expected and shorter
Search keywords: TimePicker, DatePicker, clearing TimePicker/ DatePicker
Order ID: #49335
The text was updated successfully, but these errors were encountered: