From afeb30f8901a386d72c87867831ef5b852915ca8 Mon Sep 17 00:00:00 2001 From: stewieoO Date: Wed, 18 Dec 2024 21:57:00 +0100 Subject: [PATCH] call change detector after destroy --- packages/primeng/src/dynamicdialog/dialogservice.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/primeng/src/dynamicdialog/dialogservice.ts b/packages/primeng/src/dynamicdialog/dialogservice.ts index 8c8b4096d74..55c3c9e6da9 100755 --- a/packages/primeng/src/dynamicdialog/dialogservice.ts +++ b/packages/primeng/src/dynamicdialog/dialogservice.ts @@ -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); }