-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/snack-bar): Ensure snackbar open animation works with On…
…Push ancestor The enter animation of the snackbar is not guaranteed to work when there is an `OnPush` parent because it never calls `markForCheck` when updating the animation state. Even though it calls `detectChanges`, this will not refresh the host bindings, which includes the animation. This change updates the `enter` behavior to also call `markForCheck` to ensure the host view is eventually refreshed when change detection runs.
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 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