-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
cannot reproduceThe team is unable to reproduce this issue with the information providedThe team is unable to reproduce this issue with the information provided
Description
Bug:
This is a bug in accordian, where multiple expansion panels are getting emitted for a click on one expansion panel.
What is the expected behavior?
It is supposed to emit opened method for only the selected panel. Not all the opened emits
What is the current behavior?
It is getting emitted for multiple expansion panels.
What are the steps to reproduce?
Code Snippet
<mat-accordion *ngFor="let module of modules; let mi = index;"> <mat-expansion-panel [expanded]="miStep === mi" (opened)="openModulePanel(module.type, lang.code, mi)" hideToggle> <mat-expansion-panel-header> <mat-panel-title> {{ module?.metaData?.displayName }} </mat-panel-title> </mat-panel-title> </mat-expansion-panel-header> </mat-expansion-panel> </mat-accordion>
What is the use-case or motivation for changing an existing behavior?
Difficult to handle child panels
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 5.2.8
material: 5.2.5
Typescript: 2.4.2
Is there anything else we should know?
No
Metadata
Metadata
Assignees
Labels
cannot reproduceThe team is unable to reproduce this issue with the information providedThe team is unable to reproduce this issue with the information provided