Closed
Description
Description
DateTimePicker has a number of validation issues and inconsistencies that negatively impact user experience:
- Blur triggers the required error when leaving the field without changes (related to the
validated
event) - Validation can be triggered more than once in a round-trip (related to the
validated
event) - Entering unparsable input in the DP or TP and pressing Enter or navigating to the other picker doesn't trigger the bad input error, although it's already known the value will be invalid
- Outside click that closes the DP or TP overlay doesn't trigger the bad input error as well, creating the impression of validity. The error appears only on the second click that corresponds to blur.
- Selecting a date in the DP beyond min/max doesn't trigger the min/max error, although it's already known the value will be invalid
- Removing part of a valid complete value and then navigating to the other picker results in the immediate required error, although the user is still interacting with the field
- Leaving the field with an incomplete value (containing only a date or time) doesn't invalidate the field unless it's required
- Lack of a dedicated i18n error message for incomplete values
These issues are partly related to the validated
event, which DateTimePicker still uses for triggering validation, unlike other components that have been refactored to use the unparsable-change
event.
Related
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
June 2025 (24.8)