-
Notifications
You must be signed in to change notification settings - Fork 84
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
fix: sync the hasInputValue state on input #4335
Conversation
2e33dc2
to
f94a70c
Compare
Although this PR fixes the claimed issue, I wonder if we should rather investigate why |
The web-components/packages/combo-box/src/vaadin-combo-box-mixin.js Lines 775 to 782 in 71104da
As follows from the comment, the logic is intended to prevent the form submission but in fact, |
Anyway, the current fix is still good enough to solve the original problem on the Flow side. As for the |
a9d7182
to
29c1ef1
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This ticket/PR has been released with Vaadin 23.2.0.beta1 and is also targeting the upcoming stable 23.2.0 version. |
Description
It turns out that
TimePicker
prevents thechange
event on the input element until it loses focus, so it is possible to commit a non-empty value on Enter but have thehasInputValue
state not updated.This PR makes the
hasInputValue
state update oninput
rather thanchange
which ensureshasInputValue
is synced in the above case as well.A follow-up to #4276
Related to vaadin/flow-components#3515
Type of change
Checklist