-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
Description
Description
When you press Enter, DatePicker, TimePicker and ComboBox trigger validation even if the input element's value hasn't actually changed. This doesn't align with the behavior of other field components e.g. TextField.
Expected outcome
DatePicker, TimePicker and ComboBox should validate on Enter only if the input element's value has changed since the last press.
Minimal reproducible example
<vaadin-date-picker required></vaadin-date-picker>
<vaadin-time-picker required></vaadin-time-picker>
<vaadin-combo-box required></vaadin-combo-box>
<script type="module">
import '@vaadin/date-picker';
import '@vaadin/time-picker';
import '@vaadin/combo-box';
</script>
Steps to reproduce
- Focus any field
- Press Enter
- Observe that the field has invalidated
Environment
Vaadin version(s): 24.3 and earlier
OS: Mac OS
Browsers
Issue is not browser related