diff --git a/web/assets/js/components/modals/playground-mode.js b/web/assets/js/components/modals/playground-mode.js index 19e9592..6f864dc 100644 --- a/web/assets/js/components/modals/playground-mode.js +++ b/web/assets/js/components/modals/playground-mode.js @@ -109,7 +109,7 @@ function handleModeClick(event, mode, element) { localStorage.setItem(localStorageKey, value); celEditor.setValue("", -1); dataEditor.setValue("", -1); - setTimeout(() => closeModal(), 1000); + setTimeout(() => modal.hide(), 1000); } function renderModeOptions() { @@ -166,10 +166,6 @@ function createInputElement(mode) { return input; } -function closeModal() { - playgroundModesModalEl.style.display = "none"; -} - function renderUIChangesByMode(mode) { const titleEl = document.querySelector(".title.expression__square"); const toggleModeHolder = document.querySelector(".modes__container-holder");