Minor Performance Improvements
This commit is contained in:
parent
6fb7b73097
commit
114cccb9f2
3 changed files with 24 additions and 10 deletions
|
|
@ -26,12 +26,6 @@ window.addEventListener("DOMContentLoaded", (evt) => {
|
|||
});
|
||||
});
|
||||
|
||||
// document.querySelectorAll("[for-modal]").forEach((modalTrigerEl) => {
|
||||
// let modal = document.getElementById(modalTrigerEl.getAttribute("for-modal"));
|
||||
// modal.classList.remove("visible");
|
||||
// modal.removeAttribute("active");
|
||||
// });
|
||||
|
||||
document.body.addEventListener('keydown', (evt) => {
|
||||
if (evt.key == "Escape") {
|
||||
let modal = document.querySelector(".modal[active]");
|
||||
|
|
|
|||
Loading…
Reference in a new issue