Skip to content

Commit

Permalink
calls hide function
Browse files Browse the repository at this point in the history
  • Loading branch information
joaovictor3g committed Apr 12, 2024
1 parent 5056946 commit bee40d5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions web/assets/js/components/modals/playground-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit bee40d5

Please sign in to comment.