Skip to content

Autocomplete doesn't emit opened first time when options are generated asynchronous  #15573

Closed
@kwiniarski97

Description

@kwiniarski97

What is the expected behavior?

Autocomplete should emit opened on first and every opening of the panel when options are generated asynchronous.

What is the current behavior?

Autocomplete doesn't emit opened when opened first time.

What are the steps to reproduce?

https://stackblitz.com/edit/autocomplete-asyc-bug
Click in the field and wait about 3 seconds. The panel opens but event is not emitted. It will be emitted on the subsequent openings.

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

Angular 7.2 Material 7.35 (Also occurs on Angular 6)

Is there anything else we should know?

I think it is because panel doesn't have any options at the beginning so it doesn't emit event.

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions