-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
mat-drawer-container triggers angular detection cycles on window:resize #18471
Labels
Comments
Sounds like it could be resolved by #15814 since the sidenav is set up to only trigger change detection if its margin has changed. |
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jul 19, 2020
Fixes the `resize` and `orientationchange` events of the `ViewportRuler` being run inside the `NgZone`, if the subscription comes from inside the zone. Fixes angular#18471.
crisbeto
added
has pr
P2
The issue is important to a large percentage of users, with a workaround
and removed
needs triage
This issue needs to be triaged by the team
labels
Jul 19, 2020
wagnermaciel
pushed a commit
that referenced
this issue
Jul 21, 2020
Fixes the `resize` and `orientationchange` events of the `ViewportRuler` being run inside the `NgZone`, if the subscription comes from inside the zone. Fixes #18471.
wagnermaciel
pushed a commit
that referenced
this issue
Jul 21, 2020
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. |
wagnermaciel
pushed a commit
to wagnermaciel/components
that referenced
this issue
Jan 14, 2021
…15814) Fixes the `resize` and `orientationchange` events of the `ViewportRuler` being run inside the `NgZone`, if the subscription comes from inside the zone. Fixes angular#18471.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Reproduction
https://stackblitz.com/edit/angular-se13bg?file=src%2Fapp%2Fsidenav-drawer-overview-example.html
Steps to reproduce:
<mat-drawer-container></mat-drawer-container>
Expected Behavior
mat-drawer-container
should not trigger angular detection cycle when the window is resizedActual Behavior
mat-drawer-container
triggers angular detection cycles on window:resizeEnvironment
The text was updated successfully, but these errors were encountered: