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
{{ message }}
Repository navigation
Autocomplete scrolling doesn't work in an element with overflow:auto #4557
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 cdkScrollable directive on the scrollable parent. E.g.
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 cdkScrollable directive on the scrollable parent. E.g.
Activity
fxck commentedon Jun 18, 2017
#3413 same problem I think
dbartumeu commentedon Aug 18, 2017
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
josephperrott commentedon Sep 27, 2017
Here is a current reproduction
crisbeto commentedon Sep 27, 2017
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
cdkScrollabledirective on the scrollable parent. E.g.Zefling commentedon Sep 28, 2017
This not works for me.
Works it if the
overflow: autois in a parent component/module ?pandiyaavps commentedon Jan 23, 2019
thank you so much
angular-automatic-lock-bot commentedon Sep 10, 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.