Description
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
6
Description
Expansion panels currently render with a flash of content when nested in MatStepper -- they always temporarily appear as expanded, regardless of what the "expanded" attribute is set to. After a moment, all expansion panels that have been explicitly set to closed collapse.
Reported fixed by #13870
However this is just when opened in a dialog without any other nesting
Reproduction
StackBlitz link: https://angular-issue13870-stepper-dialog.stackblitz.io
Steps to reproduce:
- Create a MatStepper component to contain an expansion panel
- Add a MatExpansionPanel
- Set [expanded]="false"
Expected Behavior
MatExpansionPanels currently render with a flash of content when nested -- they always temporarily appear as expanded, regardless of what the "expanded" attribute is set to. After a moment, all expansion panels that have been explicitly set to closed collapse.
Actual Behavior
MatExpansionPanels should appear as collapsed when the dialog opens when expanded=false
instead of briefly appearing as expanded, then collapsing after a delay.
Environment
- Angular: 14.2
- CDK/Material: 14.2
- Browser(s): Chrome
- Operating System : Windows