-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ng: fix infinite loop when on plugin selector (#3563)
cause: mat-tab-group emits the changed event in the Angular's equivalent to `componentDidUpdate`. The problem is that: - it emits the change in a promise (next tick) - it emits the change when the value is changed programmatically. While lacking complete understanding of the flow, empirically, I found there to be some kind of event dispatch queue and the emission to not invoke our callback immediately. fix: no longer use the mat-tab-group's change event and listen directly at the click event. Fixes b/155104143.
- Loading branch information
1 parent
7fde702
commit e6c4355
Showing
4 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters