Skip to content

Commit

Permalink
fix(module:collapse): markForCheck after collapse title clicked (#7284)
Browse files Browse the repository at this point in the history
  • Loading branch information
simplejason committed Mar 1, 2022
1 parent 071e084 commit b7433a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/collapse/collapse-panel.component.ts
Expand Up @@ -118,7 +118,10 @@ export class NzCollapsePanelComponent implements OnInit, OnDestroy {
takeUntil(this.destroy$)
)
.subscribe(() => {
this.ngZone.run(() => this.nzCollapseComponent.click(this));
this.ngZone.run(() => {
this.nzCollapseComponent.click(this);
this.cdr.markForCheck();
});
})
);
}
Expand Down

0 comments on commit b7433a9

Please sign in to comment.