From e948ecf7499d1e8f75b1b54863d84d55f48d7dcc Mon Sep 17 00:00:00 2001 From: Ege Korkan Date: Tue, 14 Nov 2023 10:59:21 +0100 Subject: [PATCH] added custom popup event for side settings menu --- packages/web-new/src/scripts/settings-menu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web-new/src/scripts/settings-menu.js b/packages/web-new/src/scripts/settings-menu.js index aca8141b0..9d1e81aef 100644 --- a/packages/web-new/src/scripts/settings-menu.js +++ b/packages/web-new/src/scripts/settings-menu.js @@ -58,6 +58,7 @@ closeSettings.addEventListener("click", () => { settingsBtn.addEventListener("click", () => { settingsMenu.classList.toggle("closed") + window.dispatchEvent(new CustomEvent("popup")); }) //Handle click outside the settings menu