Skip to content

MatAutocompleteTrigger.panelClosingActions emmiting even if the panel isn't being closed #8763

Closed
@julianobrasil

Description

@julianobrasil

Bug, feature request, or proposal:

Bug?

What is the expected behavior?

MatAutocompleteTrigger.panelClosingActions should emmit only upon a closing panel action

What is the current behavior?

It's emmiting a void when the input is focused and the user hit tab key to leave it, even if the panel is already closed.

image

What are the steps to reproduce?

https://stackblitz.com/edit/autocomplete-force-selection

Open the Developer Tools, select the input and hit tab. It will emmit an undefined.

Is there anything else we should know?

I'm not sure if it's covered by #8533 (haven't taken a look at the code)

cc @crisbeto

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