Skip to content

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

Closed

Description

@grizzm0

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?

Activity

  1. self-assigned this
    on Jul 16, 2017
  2. fxck commented on Jul 16, 2017

    @fxck
    Contributor

    dupe of #3413

  3. crisbeto commented on Jul 17, 2017

    @crisbeto
    Member

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

  4. kostas-kapasakis commented on Nov 14, 2018

    @kostas-kapasakis

    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

  5. angular-automatic-lock-bot commented on Sep 10, 2019

    @angular-automatic-lock-bot

    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.

  6. locked and limited conversation to collaborators on Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions