Skip to content

bug(autocomplete): wrong positioning on dialog #3722

Closed

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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