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
The Sidenav automatically wraps the content in a mat-sidenav-content.
Also the CdkScrollable-directive is added to this element and I would like to get a reference to it.
What is the current behavior?
It does not seem to be possible to access the CdkScrollable instance.
As it is created automatically it does not seem to be accessible using @ViewChild or @ContentChild.
What are the steps to reproduce?
Create a simple Sidenav and check the resulting HTML in the DevTools:
Now try to access the cdkScrollable-Instance of the mat-sidenav-content.
What is the use-case or motivation for changing an existing behavior?
The content of the sindenav is scrollable by default. In my case I want to hide some elements, when the user scrolls down.
My work-around is to wrap the content in another scrollable-container and make the mat-sidenav-container not-scrollable (height = parent height).
Activity
refactor(drawer): expose CdkScrollable instance
refactor(drawer): expose CdkScrollable instance
refactor(drawer): expose CdkScrollable instance
feat(drawer): expose CdkScrollable instance (#9183)
angular-automatic-lock-bot commentedon Sep 8, 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.