Fix modals not closing on Android

This commit is contained in:
2022-08-10 22:40:54 +01:00
parent fa11be741a
commit 1ebccc7338
4 changed files with 8 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
var modal = document.querySelector('.modal'); // assuming you have only 1
// var modal = document.querySelector('.modal'); // assuming you have only 1
var modal = document.getElementById("drilldown-modal");
var html = document.querySelector('html');
var elements = document.querySelectorAll('.modal-background');
@@ -34,4 +35,4 @@ activateButtons();
// e.preventDefault();
// modal.classList.remove('is-active');
// html.classList.remove('is-clipped');
// });
// });