Skip to content

Commit

Permalink
Merge pull request #17123 from stewieoO/fix-dynamic-dialog-zoneless-1…
Browse files Browse the repository at this point in the history
…6402

Fix: Dynamic Dialog not being properly destroyed on close
  • Loading branch information
cetincakiroglu authored Dec 26, 2024
2 parents 6d5e7b8 + afeb30f commit 96ed38d
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 @@ -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);
}

Expand Down

0 comments on commit 96ed38d

Please sign in to comment.