You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sidenav - .mat-sidenav-opened is not being applied after switching mode from side to over #6062
What is the use-case or motivation for changing an existing behavior?
When changing size of the screen (e.g. rotating device) it is useful to change mode between side and over. Class mat-sidenav-opened is also useful as it tells when side-nav is closed and animation completed.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Activity
willshowell commentedon Jul 26, 2017
You should be querying
mat-sidenav, notmat-sidenav-containerhttps://plnkr.co/edit/QMJoGWtLAOXbGJl9KN7L?p=preview
dmitrysteblyuk commentedon Jul 26, 2017
@willshowell for
overmode this class is applied to container as wellhttps://plnkr.co/edit/0ja1auGaL6cUlYCkvNdk?p=preview
Sometimes it is necessary to have classes in parent elements, not in children.
willshowell commentedon Jul 26, 2017
Oh I see, thanks for clarifying! Looks like it only subscribes at the beginning and only if
mode !== sidehttps://github.com/angular/material2/blob/master/src/lib/sidenav/sidenav.ts#L415-L418
mmalerba commentedon Oct 13, 2017
fixed by #6712
angular-automatic-lock-bot commentedon Sep 7, 2019
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.