-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(checkbox): error when disabling while focused #12327
fix(checkbox): error when disabling while focused #12327
Conversation
src/lib/checkbox/checkbox.ts
Outdated
this._onTouched(); | ||
// Do not immediately mark the component as touched because it can happen that the `blur` | ||
// event from `FocusMonitor` fires, while the component is checked after a change detection. | ||
// Immediately updating would then result in a changed after checked exception. Rel: #12323 |
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.
Same comment here as the slide-toggle PR
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.
Done.
* Fixes that Angular throws an ExpressionChangedAfterItHasBeenCheckedError when disabling the checkbox while the component has been focused. * Adds missing test for `NgModel` states after value change through view. Related angular#12323
c0da972
to
6439788
Compare
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
* Fixes that Angular throws an ExpressionChangedAfterItHasBeenCheckedError when disabling the checkbox while the component has been focused. * Adds missing test for `NgModel` states after value change through view. Related #12323
* Fixes that Angular throws an ExpressionChangedAfterItHasBeenCheckedError when disabling the checkbox while the component has been focused. * Adds missing test for `NgModel` states after value change through view. Related #12323
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. |
NgModel
states after value change through view.NgModel
tests a bitRelated #12323