-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/autocomplete): mark control as touched once panel is closed #18318
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
base: main
Are you sure you want to change the base?
Conversation
Caretaker note: this changes the order of events slightly which has the potential to break tests. We should evaluate how to proceed based on the presubmit results. |
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
SIGH
There are 110 failing targets. Half of them are build errors like this, and the other half are test failures due to the behavior change. We've got to get people using the harnesses. |
808a3a5
to
54bdaa3
Compare
I've put back the two functions so at least the compilation issues are resolved. |
54bdaa3
to
71331d0
Compare
71331d0
to
97d0d86
Compare
97d0d86
to
0884dcc
Compare
0884dcc
to
2c7ce85
Compare
2c7ce85
to
1d23c86
Compare
1d23c86
to
f63b699
Compare
Currently we mark the autocomplete control as touched on `blur`. The problem is that the `blur` event happens a split second before the panel is closed which can cause the error styling to show up and disappear quickly which looks glitchy. These changes change it so that the control is marked as touched once the panel is closed. Also makes a couple of underscored properties private since they weren't used anywhere in the view. Fixes angular#18313.
f63b699
to
8806d31
Compare
Currently we mark the autocomplete control as touched on
blur
. The problem is that theblur
event happens a split second before the panel is closed which can cause the error styling to show up and disappear quickly which looks glitchy. These changes change it so that the control is marked as touched once the panel is closed.Also makes a couple of underscored properties private since they weren't used anywhere in the view.
Fixes #18313.
Caretaker note: Change is problematic, lots of tests depend on programmatic blur events to mark a control as touched.