Skip to content

Commit

Permalink
call change detector after destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
stewieoO committed Dec 18, 2024
1 parent 5b3ad43 commit afeb30f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/primeng/src/dynamicdialog/dialogservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class DialogService {
const dialogComponentRef = this.dialogComponentRefMap.get(dialogRef);
this.appRef.detachView(dialogComponentRef.hostView);
dialogComponentRef.destroy();
dialogComponentRef.changeDetectorRef.detectChanges();
this.dialogComponentRefMap.delete(dialogRef);
}

Expand Down

0 comments on commit afeb30f

Please sign in to comment.