-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Autocomplete scrolling doesn't work in an element with overflow:auto #4557
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
Comments
#3413 same problem I think |
I'm having the same problem... Plunker template: https://plnkr.co/edit/g9wLPm6Umafsp069upM3?p=preview Which versions of Angular, Material? Test with Angular 4.3.3 & Material 2.0.0-beta.6 |
Here is a current reproduction |
That's because the autocomplete can't know which parent is scrollable. We could figure it out automatically, but it'll be very slow and unreliable. The way to let Material know that the autocomplete should reposition on scroll is to add the <div style="height: 400px; overflow: auto" cdkScrollable></div> |
This not works for me. |
thank you so much |
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. |
Bug, feature request, or proposal:
Scroll position off autocomplete is not good if the parent scrolling element is not body.
What is the expected behavior?
Not scroll the page or scroll at the good position.
What is the current behavior?
The autocomplete list is static.
What are the steps to reproduce?
Plunker template: https://plnkr.co/edit/54OGBu?p=preview
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Test with Angular 4.1.2 & Material 2.0.0-beta.5
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: