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
date-time-picker triggers validation not only when focus moves away from the field but also when it is moving inside the field. As a result, if the field is required, it gets reported as invalid before the user has actually selected both date and time which is confusing from any perspective: UX, accessibility.
See the video for an illustration:
Screen.Recording.2022-09-02.at.14.24.51.mov
Expected outcome
I would expect the validation to be triggered only when focus moves out of the field.
Minimal reproducible example
<scripttype="module">import'@vaadin/date-time-picker';</script><vaadin-date-time-pickerlabel="Birth date and time"
error-message="error-message"
required></vaadin-date-time-picker>
Steps to reproduce
Add the above snippet to an HTML page
Click on the date input.
Press Tab.
Environment
Vaadin version(s): 23.2, also affects older versions.
OS: Mac OS
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered:
vursen
changed the title
[date-time-picker] Should not trigger validation when focus moves inside the field
[date-time-picker] Should not trigger validation when focus is moving inside the field
Sep 2, 2022
Description
date-time-picker
triggers validation not only when focus moves away from the field but also when it is moving inside the field. As a result, if the field is required, it gets reported as invalid before the user has actually selected both date and time which is confusing from any perspective: UX, accessibility.See the video for an illustration:
Screen.Recording.2022-09-02.at.14.24.51.mov
Expected outcome
I would expect the validation to be triggered only when focus moves out of the field.
Minimal reproducible example
Steps to reproduce
Environment
Vaadin version(s): 23.2, also affects older versions.
OS: Mac OS
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: