Skip to content

bug(MatSidenav): Material button wrong state when toggling a sidenav after clicking the backdrop #23484

Closed
@anphetamina

Description

@anphetamina

Reproduction

https://stackblitz.com/edit/angular-ivy-pohh5m?file=src/app/app.component.html

Steps to reproduce:

  1. Click on the "menu" icon
  2. Once the sidenav is open, click on the backdrop
  3. Notice the state of the "menu" icon

Expected Behavior

The "menu" icon state should be restored

Actual Behavior

The "menu" icon state is wrong

Environment

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

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions