From 2bd5e5c2f364cb5c5b90da70de7d4ba23a7566a7 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Sat, 11 Dec 2021 12:01:49 -0700 Subject: [PATCH] disable ctx when modal --- scripts/contextmenu/createcontext.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/contextmenu/createcontext.js b/scripts/contextmenu/createcontext.js index 25883b8..6b3c648 100644 --- a/scripts/contextmenu/createcontext.js +++ b/scripts/contextmenu/createcontext.js @@ -1,4 +1,5 @@ module.exports = (e, target, window) => { + if (window.kade.modal) {return;} window.kade.context = true; let ctx = document.getElementById('ctx'); ctx.style.display = 'block';