diff --git a/src/modules/DOM.js b/src/modules/DOM.js index d39470a..2fc8272 100644 --- a/src/modules/DOM.js +++ b/src/modules/DOM.js @@ -177,7 +177,9 @@ module.exports = { Array.from(document.getElementsByClassName('modal-background')).forEach(function(element) { element.addEventListener('click', function() { //element.parentNode.classList.remove('is-active'); - Modal.Close(element.parentNode.id); + if (element.parentNode.id != 'yesno_modal') { + Modal.Close(element.parentNode.id); + } }); });