Skip to content

Autocomplete panel does not reposition on scroll of child element #5797

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

Closed
grizzm0 opened this issue Jul 16, 2017 · 4 comments
Closed

Autocomplete panel does not reposition on scroll of child element #5797

grizzm0 opened this issue Jul 16, 2017 · 4 comments
Assignees

Comments

@grizzm0
Copy link
Contributor

grizzm0 commented Jul 16, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

While scrolling the autocomplete panel should reposition itself to follow the input.

What is the current behavior?

The panel repositions itself while scrolling body but not if the autocomplete is within a child element that has a scroll.

What are the steps to reproduce?

http://plnkr.co/edit/6Wzw5qBuUARyzgqI3foL?p=preview

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Is there anything else we should know?

@crisbeto crisbeto self-assigned this Jul 16, 2017
@fxck
Copy link
Contributor

fxck commented Jul 16, 2017

dupe of #3413

@crisbeto
Copy link
Member

@grizzm0 it'll work if you add cdk-scrollable to the main element. Here's a forked Plunkr.

@kostas-kapasakis
Copy link

https://stackblitz.com/edit/angular-sc6bfp-ft5zvw?file=app%2Fautocomplete-overview-example.html

The issue is still there if you want bigger mat-option content.For example if we set the map-option height style , for example style="height:97px" by navigating with down arrow key the scrolling doesnt work properly

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants