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
If manually setting datePicker.invalid = true the field becomes invalid and red, but then if the field is focused and then unfocused it automatically becomes valid again and not red anymore. This doesn't seem right. E.g. vaadin-text-field and vaadin-time-picker both keep it as invalid even if the user focuse and unfocuses/blurs the field.
Expected outcome
When <vaadin-date-picker> has been explicitly set as invalid, it should not become valid just by focusing and unfocusing it.
Actual outcome
When <vaadin-date-picker> has been explicitly set as invalid, it becomes valid just by focusing and unfocusing it.
web-padawan
changed the title
Manually set invalid state is automatically removed on blur
[date-picker] Manually set invalid state is automatically removed on blur
May 21, 2021
Description
If manually setting
datePicker.invalid = true
the field becomes invalid and red, but then if the field is focused and then unfocused it automatically becomes valid again and not red anymore. This doesn't seem right. E.g.vaadin-text-field
andvaadin-time-picker
both keep it as invalid even if the user focuse and unfocuses/blurs the field.Expected outcome
When
<vaadin-date-picker>
has been explicitly set as invalid, it should not become valid just by focusing and unfocusing it.Actual outcome
When
<vaadin-date-picker>
has been explicitly set as invalid, it becomes valid just by focusing and unfocusing it.Steps to reproduce
https://cdn.vaadin.com/vaadin-date-picker/4.0.6/demo/#date-picker-basic-demos
vaadin-date-picker
on the page and make it invalid by executing$0.invalid = true
(notice the text field will become red).Other
Might be related to vaadin/vaadin-date-picker#696.
The text was updated successfully, but these errors were encountered: