]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Update modal.html
authorplusleft <107749872+0xleft@users.noreply.github.com>
Sun, 11 Feb 2024 10:06:44 +0000 (10:06 +0000)
committerJeremy Thomas <bbxdesign@gmail.com>
Sun, 11 Feb 2024 15:42:09 +0000 (15:42 +0000)
docs/documentation/components/modal.html

index fd1e1ff0fa8e2badd7b9ac0886d0fbcd25f0489b..c40d3ee32f0a9f7a864bbe663410c848b203dc3b 100644 (file)
@@ -120,7 +120,7 @@ document.addEventListener('DOMContentLoaded', () => {
 
   // Add a keyboard event to close all modals
   document.addEventListener('keydown', (event) => {
-    if(e.key === "Escape") {
+    if(event.key === "Escape") {
       closeAllModals();
     }
   });