Skip to content

Commit

Permalink
Fixed #10509 - Wrong emit on accordion open
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Nov 30, 2021
1 parent fc8fa68 commit b2a1580
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/components/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,11 @@ export class AccordionTab implements AfterContentInit,OnDestroy {
else {
if (!this.accordion.multiple) {
for (var i = 0; i < this.accordion.tabs.length; i++) {
this.accordion.tabs[i].selected = false;
this.accordion.tabs[i].selectedChange.emit(false);
this.accordion.tabs[i].changeDetector.markForCheck();
if (this.accordion.tabs[i].selected) {
this.accordion.tabs[i].selected = false;
this.accordion.tabs[i].selectedChange.emit(false);
this.accordion.tabs[i].changeDetector.markForCheck();
}
}
}

Expand Down

0 comments on commit b2a1580

Please sign in to comment.