-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(autocomplete): marking element as touched too early when clicking on options #13773
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(autocomplete): marking element as touched too early when clicking on options #13773
Conversation
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.
LGTM
f996b22
to
30256f7
Compare
30256f7
to
3a2e624
Compare
3a2e624
to
00c37d2
Compare
Is there any news? |
00c37d2
to
0cd5f45
Compare
… on options Currently we mark the autocomplete's CVA as touched on each `blur` event, which can happen a little too early if the user holds their pointer while clicking on an item, causing the form validation to show up too early. These changes defer marking the element as touched until the panel has closed. Fixes angular#13732.
0cd5f45
to
518ee59
Compare
This is basically the same as #11908. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Currently we mark the autocomplete's CVA as touched on each
blur
event, which can happen a little too early if the user holds their pointer while clicking on an item, causing the form validation to show up too early. These changes defer marking the element as touched until the panel has closed.Fixes #13732.