From 5895d66179c55e3cbda8e298d333cd881b75b2f8 Mon Sep 17 00:00:00 2001 From: Frank Tovar Date: Fri, 6 Feb 2026 23:23:31 +0100 Subject: [PATCH] Fix confirm modal close initialization error --- wwwroot/js/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/js/ui.js b/wwwroot/js/ui.js index 6347140..ce91f0a 100644 --- a/wwwroot/js/ui.js +++ b/wwwroot/js/ui.js @@ -762,6 +762,7 @@ export function openConfirmModal({ title, body, confirmLabel, cancelLabel = t("m

${body}

`; + const close = () => overlay.remove(); const actions = document.createElement("div"); actions.className = "stack horizontal"; const confirmBtn = document.createElement("button"); @@ -777,7 +778,6 @@ export function openConfirmModal({ title, body, confirmLabel, cancelLabel = t("m } panel.querySelector(".edit-body")?.appendChild(actions); - const close = () => overlay.remove(); overlay.addEventListener("click", (e) => { if ( e.target.classList.contains("edit-modal") ||