Skip to content

bug(MatAutoComplete): requiredSelection value racecon on panel close #30447

Open
@gpaimla

Description

@gpaimla

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Autocomplete using "requiredSelection" results in a racecon upon closing the panel

mMKnaVDucT.mp4

Reproduction

StackBlitz link: https://stackblitz.com/edit/q5xjs54i?file=src%2Fexample%2Fautocomplete-require-selection-example.ts
Steps to reproduce:

  1. open panel
  2. while panel is open click reset button

Expected Behavior

Control value should be set after clicking "reset" button while the autocomplete panel is open

Actual Behavior

Control has no value after clicking "reset" button while the autocomplete panel is open

Environment

  • Angular: 19.0.0
  • CDK/Material: 19.0.0
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/autocomplete

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions