-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(select): changed after checked error if selected option label changes #14797
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(select): changed after checked error if selected option label changes #14797
Conversation
src/lib/select/select.spec.ts
Outdated
@@ -1374,10 +1374,26 @@ describe('MatSelect', () => { | |||
|
|||
fixture.componentInstance.foods[1].viewValue = 'Calzone'; | |||
fixture.detectChanges(); | |||
tick(); |
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.
Note: this is only necessary for our assertions to pass, it won't be necessary for people to change their existing tests.
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
Is this going to be checked in soon @crisbeto ? seems to have been ready for awhile. |
@crisberto The process seems to be hanging. What can we do to get it in progress again and get the fix implemented? |
136e963
to
bd4c26d
Compare
bd4c26d
to
0db2c92
Compare
0db2c92
to
583237d
Compare
…nges Fixes a "changed after checked" error being thrown by `mat-select`, if the label of the selected `mat-option` changes. Also fixes that the trigger value doesn't get updated until the next change detection. Fixes angular#14793.
583237d
to
ad1618c
Compare
…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.
Closing in favor of #23315. |
…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.
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. |
Fixes a "changed after checked" error being thrown by
mat-select
, if the label of the selectedmat-option
changes.Also fixes that the trigger value doesn't get updated until the next change detection.
Fixes #14793.