Topic: MDB accordion fails to toggle when more than one accordion on same component
PW4U pro asked 6 years ago
DigiPlan priority answered 3 years ago
@Arkadiusz Idzikowski is this already fixed I'm facing the same issue
Arkadiusz Idzikowski staff commented 3 years ago
@DigiPlan This problem was fixed in v7.4.1, if you are using a newer version and the component still doesn't work correctly, please add some example code to your post, so we can reproduce the problem on our end.
Arkadiusz Idzikowski staff answered 6 years ago
PW4U pro answered 6 years ago
Arkadiusz Idzikowski staff answered 6 years ago
PW4U pro answered 6 years ago
<mdb-accordion [multiple]="false" aria-multiselectable="false"> <mdb-accordion-item *ngFor="let item of [1,2,3,4,5]; let i = index; let isLast = last" [collapsed]="item !== 1" [ngClass]="{ 'last': isLast }"> <mdb-accordion-item-head (click)="headClick(i)"> <mdb-icon icon="file-o"></mdb-icon> {{item.title}} </mdb-accordion-item-head> <mdb-progressbar animate="true" [type]="item === 1 ? 'success' : 'danger'" [value]="100" min="0" max="100" [attr.aria-valuenow]="100" aria-valuemin="0" aria-valuemax="100" [mdbTooltip]="Tooltip text'" placement="top" >{{ item | percent }} </mdb-progressbar> <mdb-accordion-item-body> <app-child-component [item]="item"> </app-child-component> </mdb-accordion-item-body> </mdb-accordion-item> </mdb-accordion>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.3
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No