Skip to content
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

Open
daicoden opened this issue Dec 29, 2018 · 5 comments
Open

Make mat-autocomplete scroll behavior match mat-select. #14669

daicoden opened this issue Dec 29, 2018 · 5 comments
Labels
area: material/autocomplete feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions

Comments

@daicoden
Copy link

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.

@andrewseguin andrewseguin added the feature This issue represents a new feature or feature request rather than a bug or bug fix label May 7, 2019
@andrewseguin
Copy link
Contributor

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.

@andrewseguin andrewseguin added the P4 A relatively minor issue that is not relevant to core functions label May 7, 2019
@tommyc38
Copy link

Mine isn't scrolling and looks terrible when it hangs while the rest of the page scrolls. Any ideas on what might cause this???

@DavideDelbianco
Copy link

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";
This will add that element to those watched for scroll events.

@angular-robot
Copy link
Contributor

angular-robot bot commented Feb 1, 2022

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.

@angular-robot
Copy link
Contributor

angular-robot bot commented Feb 22, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/autocomplete feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

No branches or pull requests

5 participants