From d79f38dd87edbad2e5a7db57437175f25817e6ed Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 25 Sep 2023 12:52:40 +0100 Subject: [PATCH] chore: quick fix for an issue added in a previous commit --- frontend/src/ts/popups/simple-popups.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/popups/simple-popups.ts b/frontend/src/ts/popups/simple-popups.ts index 5b6b03e52..d1acbfa21 100644 --- a/frontend/src/ts/popups/simple-popups.ts +++ b/frontend/src/ts/popups/simple-popups.ts @@ -314,7 +314,10 @@ function hide(): void { $("#simplePopupWrapper").on("mousedown", (e) => { if ($(e.target).attr("id") === "simplePopupWrapper") { - if (activePopup) return activePopup.hide(); + if (activePopup) { + activePopup.hide(); + return; + } $("#simplePopupWrapper") .stop(true, true) .css("opacity", 1)