Skip to content

Autocomplete and page scroll #3219

Closed
Closed

Description

@FilipeQ

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Autocomplete options should stay near input

What is the current behavior?

Autocomplete options don't change css top property when we scroll on the page.
After scroll autocomplete options don't follow the input position.

What are the steps to reproduce?

https://plnkr.co/edit/I2TAghRrpbzmgQK5SsXd?p=preview

I use the material Docs plunker and add some fake scroll, to reproduce the problem.

Activity

  1. fxck commented on Feb 21, 2017

    @fxck
    Contributor

    None of the Overlay utilising components does. There's a PR for a solution that will block scrolling while any overlay is open, but #1971 either there's some problem with it or the assignee is busy.

  2. ronanbrett commented on Feb 22, 2017

    @ronanbrett

    I got around it by sticking a scroll dispatcher on the body and updating the position manually as the user scrolls, but there are some issues on iOS safari with fixed positioning when the keyboards open.

  3. pabx06 commented on Mar 16, 2017

    @pabx06

    @fxck would you mind sharing the code that fix it ? having the same issue here

  4. dalemanthei commented on Mar 24, 2017

    @dalemanthei

    It is perhaps a naive implementation but it seems like a stacking context would be one solution. What don't I get about what the overlay is providing?

  5. jelbourn commented on Apr 13, 2017

    @jelbourn
    Contributor

    Now tracking via #4093

  6. angular-automatic-lock-bot commented on Sep 5, 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.

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

Metadata

Metadata

Assignees

No one assigned

    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