-
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
Make mat-autocomplete scroll behavior match mat-select. #14669
Comments
Currently the dropdown does scroll with the autocomplete, but it is still valid to request a change in scrolling behavior if you want it locked like the select. |
Mine isn't scrolling and looks terrible when it hangs while the rest of the page scrolls. Any ideas on what might cause this??? |
The autocomplete panel scrolls only by listening to body and html scoll events, if you have it inside another scrollable parent element add to that element the directive cdkScrollable and import { ScrollingModule } from "@angular/cdk/scrolling"; |
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
Please describe the feature you would like to request.
Disable the ability to scroll the page when the autocomplete options are displayed, so autocomplete works the same as mat-select.
What is the use-case or motivation for this proposal?
Currently when you use mat-autocomplete, the options do not stick to the dropdown field - reported in #12500. The mat-select behavior works great, so could we copy it for mat-autocomplete?
Is there anything else we should know?
Looking through the mat-select code, there's 1000 lines of code related to scrolling. I could work on a PR with some pointers to where the behavior is located.
The text was updated successfully, but these errors were encountered: