MdTab isActive ExpressionChangedAfterItHasBeenCheckedError
See original GitHub issueBug, feature request, or proposal:
Bug - when using *ngIf inside a tab, in conjunction with MdTab.isActive, an ExpressionChangedAfterItHasBeenCheckedError is printed to the console when switching tabs. The functionality is correct however (i.e. the ngIf and tabs work as they should.)
What is the expected behavior?
No ExpressionChangedAfterItHasBeenCheckedError error is printed to the console.
What is the current behavior?
Error is printed to the console:
Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'false'. Current value: 'true'.
What are the steps to reproduce?
http://plnkr.co/edit/SotTRsV9iLhvH95VmS0Y?p=preview
What is the use-case or motivation for changing an existing behavior?
N/A
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 4.3.6 Material: 2.0.0-beta.10 Typescript: 2.3.4 Browser: Chrome Version 60.0.3112.113 OS: Windows 10
Is there anything else we should know?
No.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Plunker
isActive ExpressionChangedAfterItHasBeenCheckedError </md-toolbar> <div ... <md-tab *ngFor="let tab of tabs" #currentTab> <ng-template md-tab-label> Tab ...
Read more >MdTab: Add property to determine if the tab is active #6422
It would be helpful to have a property on MdTab that returns true if it ... MdTab isActive ExpressionChangedAfterItHasBeenCheckedError #6934.
Read more >ExpressionChangedAfterItHasBe...
I am always getting the ExpressionChangedAfterItHasBeenCheckedError. But it really confuses me because my code is in the constructor?
Read more >CHANGELOG_ARCHIVE.md - components - Fossies
MatButtonToggleGroup causes ExpressionChangedAfterItHasBeenCheckedError (#10607); focus-trap: wrong element being checked when logging deprecation warning ...
Read more >Source - GitHub
... Bug fixes * **o-table**: * Fix bug when `select-all-checkbox-visible` is active. ... fixing ExpressionChangedAfterItHasBeenCheckedError errors ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just ran into this problem aswell, any workaround so far? As others stated this do seems like a valid bug since the basic example on #6422 throws this error.
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.