Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Aug 5, 2021

Fixes a "changed after checked" error that is thrown if the label of a selected option changes dynamically.

This is alternate approach to #14797 which was tricky to land, because it introduced an extra timeout.

Fixes #14793.

Note: I'm bumping this to a P2, because the related issue has been getting activity consistently for a long time now.

@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release labels Aug 5, 2021
@crisbeto crisbeto requested a review from jelbourn August 5, 2021 16:23
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 5, 2021
@crisbeto crisbeto force-pushed the 14793/option-changed-after-checked branch from a80f88b to c655c4c Compare August 5, 2021 16:25
@andrewseguin andrewseguin removed the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 28, 2021
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 29, 2021
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

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

LGTM

@crisbeto crisbeto self-assigned this Nov 29, 2022
@crisbeto crisbeto force-pushed the 14793/option-changed-after-checked branch 2 times, most recently from e999350 to bac6a51 Compare November 29, 2022 07:48
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Nov 29, 2022
…nges

Fixes a "changed after checked" error that is thrown if the label of a selected option changes dynamically.

This is alternate approach to angular#14797 which was tricky to land, because it introduced an extra timeout.

Fixes angular#14793.
@crisbeto crisbeto force-pushed the 14793/option-changed-after-checked branch from bac6a51 to 1efa47d Compare November 29, 2022 15:06
@crisbeto crisbeto merged commit 52a36b3 into angular:main Nov 29, 2022
crisbeto added a commit that referenced this pull request Nov 29, 2022
…nges (#23315)

Fixes a "changed after checked" error that is thrown if the label of a selected option changes dynamically.

This is alternate approach to #14797 which was tricky to land, because it introduced an extra timeout.

Fixes #14793.

(cherry picked from commit 52a36b3)
@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 Dec 30, 2022
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 P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic change in label of mat-option gives ExpressionChangedAfterItHasBeenCheckedError
5 participants