Skip to content

bug(autocomplete): wrong positioning on dialog #3722

Closed

Description

@jefersonestevo

Bug, feature request, or proposal:

bug

What is the expected behavior?

The autocomplete should be positioned correctly independent if it's inside a dialog

What is the current behavior?

When you open a dialog, it automatic focus on the first item. If the dialog component populate the options list of the autocomplete on ngOnInit (with an asynchronous call), the autocomplete gets the wrong position

PS: The error only happens if you populate the autocomplete list on an asynchronous call

What are the steps to reproduce?

Plunker

Image:
image

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

@angular/material: beta.2

Activity

  1. self-assigned this
    on Mar 23, 2017
  2. added a commit that references this issue on Mar 29, 2017
    d7d2b16
  3. added a commit that references this issue on Apr 16, 2017
  4. 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.

  5. 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

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