From 04e277438ca0bbd444bb4ffddfabe11eccc5aa0e Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 13 Mar 2024 00:29:53 +0100 Subject: [PATCH] chore: fix newverisonindicator opening version history modal --- frontend/src/ts/event-handlers/footer.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/ts/event-handlers/footer.ts b/frontend/src/ts/event-handlers/footer.ts index f2cef87f49f3..38593aa406cc 100644 --- a/frontend/src/ts/event-handlers/footer.ts +++ b/frontend/src/ts/event-handlers/footer.ts @@ -16,6 +16,13 @@ document }); }); +document + .querySelector("footer #newVersionIndicator") + ?.addEventListener("click", (e) => { + e.stopPropagation(); + document.querySelector("#newVersionIndicator")?.classList.add("hidden"); + }); + document .querySelector("footer .currentVersion") ?.addEventListener("click", (e) => { @@ -64,9 +71,3 @@ document ?.addEventListener("click", () => { ContactModal.show(); }); - -document - .querySelector("footer #newVersionIndicator") - ?.addEventListener("click", () => { - document.querySelector("#newVersionIndicator")?.classList.add("hidden"); - });