Skip to content

bug(select): mat-select.close() emits openedChange event with value "true" #33116

@nileshlad09

Description

@nileshlad09

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

CDK/material: "19.0.5"

Description

unexpected behavior calling the close() method on mat-select. it emits openedChange event with value "true"

Reproduction

StackBlitz link: https://stackblitz.com/edit/oirpsfkv?file=src%2Fexample%2Fselect-disabled-example.html,src%2Fexample%2Fselect-disabled-example.ts,package.json
(forked from Material Docs)

Steps to reproduce:
Open the console.
Click on the mat-select.
Observe the console logs — after a single click, multiple open and close events are fired.

Expected Behavior

After one click, there should only be two logs: one open and one close.

Actual Behavior

Multiple open and close logs appear after a single click.

Image

Environment

Angular: 19.2.20
CDK/Material: 19.2.19
Browser(s): Chrome, Firefox
Operating System (e.g. Windows, macOS, Ubuntu): Windows 11

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/select

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions