Skip to content

Commit

Permalink
don't close yesno modal on bg click
Browse files Browse the repository at this point in the history
  • Loading branch information
RvNovae committed Jan 24, 2020
1 parent 8c19255 commit 5034987
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/DOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
});

Expand Down

0 comments on commit 5034987

Please sign in to comment.