Skip to content

Commit

Permalink
Merge pull request #9793 from elisiara/patch-1
Browse files Browse the repository at this point in the history
Fixed #8585 - ConfirmDialog throws exception during onDestroy
  • Loading branch information
yigitfindikli authored Jan 21, 2021
2 parents 02df6dd + 1127926 commit 525bb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/confirmdialog/confirmdialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export class ConfirmDialog implements AfterContentInit,OnDestroy {
this.unbindMaskClickListener();
}

if (this.container) {
if (this.container && !this.cd['destroyed']) {
this.cd.detectChanges();
}
}
Expand Down

0 comments on commit 525bb1e

Please sign in to comment.