diff --git a/packages/primeng/src/dynamicdialog/dialogservice.ts b/packages/primeng/src/dynamicdialog/dialogservice.ts index 04a1c3b533..97df424247 100755 --- a/packages/primeng/src/dynamicdialog/dialogservice.ts +++ b/packages/primeng/src/dynamicdialog/dialogservice.ts @@ -91,6 +91,7 @@ export class DialogService { const dialogComponentRef = this.dialogComponentRefMap.get(dialogRef); this.appRef.detachView(dialogComponentRef.hostView); dialogComponentRef.destroy(); + dialogComponentRef.changeDetectorRef.detectChanges(); this.dialogComponentRefMap.delete(dialogRef); }