Skip to content
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

ExpressionChangedAfterItHasBeenCheckedError #104

Closed
minchopm opened this issue Oct 28, 2018 · 2 comments
Closed

ExpressionChangedAfterItHasBeenCheckedError #104

minchopm opened this issue Oct 28, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@minchopm
Copy link

So when the component is switching between colors I am getting this one:
RegisterComponent.html:73 ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'color: accent'. Current value: 'color: warn'.

Tested with Angular Material 7 and Angular 7

@AnthonyNahas AnthonyNahas self-assigned this Oct 30, 2018
@AnthonyNahas AnthonyNahas added the bug Something isn't working label Oct 30, 2018
@AnthonyNahas
Copy link
Member

this is a problem with the change detection operations (internal in angular). I will take a deeper look tonight. Thanks for reporting!

Tip: the message will be displayed only in debug mode. Try to add --prod and the message will disappear...

@AnthonyNahas
Copy link
Member

fixed in v3.3.0

Please consider to change the ChangeDetectionStrategy to OnPush for the parent component!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants