Skip to content

bug(MatExpansionPanel): not respecting expanded property / mat-menu forcing panels to close #20517

Closed
@Venipa

Description

@Venipa

Reproduction

https://stackblitz.com/edit/components-issue-pj9d3a?file=src%2Fapp%2Fexample-component.html

Steps to reproduce:

  1. mat menu
  2. mat-accordion with panel elements with some of them expanded from the start
  3. open menu
  4. all panels are open/expanded
  5. close menu
  6. reopen menu
  7. all expanded panels are now closed

Expected Behavior

What behavior were you expecting to see?
expanded panel after reopening mat-menu

Actual Behavior

What behavior did you actually see?
closes any expanded panel after reopening mat-menu

Environment

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

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentanimationThis issue is related to Angular animations or CSS animationsarea: material/menu

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions