Fix modals not closing on Android
This commit is contained in:
@@ -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');
|
||||
// });
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user