-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
bug(MatSidenav): Overlay scroll strategies do not work in sidenavs and drawers. #19846
Labels
area: material/sidenav
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jul 3, 2020
Marks the sidenav's inner scrollable element as `cdkScrollable` so any overlays placed inside of it can update. Fixes angular#19846.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jul 3, 2020
Marks the sidenav's inner scrollable element as `cdkScrollable` so any overlays placed inside of it can update. Fixes angular#19846. Fixes angular#18453.
I don't understand how this is supposed to help the autocomplete issue. |
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Dec 27, 2020
Marks the sidenav's inner scrollable element as `cdkScrollable` so any overlays placed inside of it can update. Fixes angular#19846. Fixes angular#18453.
annieyw
pushed a commit
that referenced
this issue
Apr 6, 2021
annieyw
pushed a commit
that referenced
this issue
Apr 6, 2021
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: material/sidenav
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Reproduction
https://stackblitz.com/edit/angular-ivy-ng8reg?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce:
Expected Behavior
The overlay's scroll strategy is honored (e.g. the overlay remains fixed to its origin).
Actual Behavior
The sidenav's inner container, .mat-drawer-inner-container, handles the overflow and scrolls. Therefore, the cdkScrollable directive has no effect and the scroll strategy is not honored.
Environment
Related Issues
Fix
CdkScrollable is declared on mat-sidenav-content but not .mat-drawer-inner-container.
Workaround
Place the following in your global styles, and declare CdkScrollable on the mat-sidenav.
The text was updated successfully, but these errors were encountered: