Skip to content

Conversation

@devversion
Copy link
Member

  • 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.
  • Cleans up the checkbox NgModel tests a bit

Related #12323

@devversion devversion added the target: patch This PR is targeted for the next patch release label Jul 23, 2018
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 23, 2018
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
Copy link
Member

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

Copy link
Member Author

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
@devversion devversion force-pushed the fix/checkbox-changed-after-checked branch from c0da972 to 6439788 Compare July 25, 2018 13:22
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jul 25, 2018
@jelbourn jelbourn merged commit c4cacce into angular:master Aug 1, 2018
@devversion devversion deleted the fix/checkbox-changed-after-checked branch August 1, 2018 14:19
jelbourn pushed a commit that referenced this pull request Aug 7, 2018
* 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
jelbourn pushed a commit that referenced this pull request Aug 7, 2018
* 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
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants