From 824cdfe393536e17516f62cb5cb9d9d3965bea62 Mon Sep 17 00:00:00 2001 From: Yannis JUSTINE Date: Thu, 17 Oct 2024 19:07:33 +0200 Subject: [PATCH] fix: Destroy dialog instance on close to release unused memory --- packages/primevue/src/dynamicdialog/DynamicDialog.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/primevue/src/dynamicdialog/DynamicDialog.vue b/packages/primevue/src/dynamicdialog/DynamicDialog.vue index 1fe211c45..18b26c8fe 100644 --- a/packages/primevue/src/dynamicdialog/DynamicDialog.vue +++ b/packages/primevue/src/dynamicdialog/DynamicDialog.vue @@ -61,6 +61,7 @@ export default { methods: { onDialogHide(instance) { !this.currentInstance && instance.options.onClose && instance.options.onClose({ type: 'dialog-close' }); + delete this.instanceMap[instance.key]; }, onDialogAfterHide() { this.currentInstance && delete this.currentInstance;