mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Update modal.html
This commit is contained in:
parent
3dafc77dfe
commit
8d75afd30e
@ -120,7 +120,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
// Add a keyboard event to close all modals
|
// Add a keyboard event to close all modals
|
||||||
document.addEventListener('keydown', (event) => {
|
document.addEventListener('keydown', (event) => {
|
||||||
if(e.key === "Escape") {
|
if(event.key === "Escape") {
|
||||||
closeAllModals();
|
closeAllModals();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user