-
Notifications
You must be signed in to change notification settings - Fork 78
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
Run validation when field is blurred #679
Conversation
A focused date is always expected to be valid (the user should not be able to focus invalid dates).
The tests are failing at some random thing about “theme-propagation”. Doesn’t seem to be related to this change. Test pass locally in Chrome at least. |
One point raised by the original issue author: pressing the clear button should remove the invalid state immediately as well. Right now it is not removed, only after the user blurs the field. |
Confirmed this issue. It works with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regression:
- Create a
required
date picker - Tab focus it (so that it's focused but not opened)
- Open the dropdown with down key
-> The field is marked as invalid
Fixes vaadin/vaadin-date-picker-flow#201
If you can come up with any potential side-effects of running validation on blur, that would be great to catch before merging 🤗
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)