From f746c87838b140c16313af4e736774e7a3dd6d4d Mon Sep 17 00:00:00 2001 From: Alexis Guyomar Date: Thu, 16 Jan 2025 15:41:27 +0100 Subject: [PATCH] fix: hotfix fore close dialog while waiting to find a cleaner solution --- _dev/src/ts/components/DialogContainer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_dev/src/ts/components/DialogContainer.ts b/_dev/src/ts/components/DialogContainer.ts index efc251d26..cbe4e55b6 100644 --- a/_dev/src/ts/components/DialogContainer.ts +++ b/_dev/src/ts/components/DialogContainer.ts @@ -59,7 +59,7 @@ export default class DialogContainer implements DomLifecycle { } #closeDialog(ev: Event): void { - scriptHandler.unloadScriptType(ScriptType.DIALOG); + setTimeout(() => scriptHandler.unloadScriptType(ScriptType.DIALOG), 0); const dialog = ev.target as HTMLDialogElement; if (dialog) { dialog.close();