]> git.ipfire.org Git - thirdparty/bulma.git/blobdiff - docs/documentation/components/modal.html
Fix #3692
[thirdparty/bulma.git] / docs / documentation / components / modal.html
index 1d570f90c94d113a2f2c2066f853bbd5d00d5cec..fd1e1ff0fa8e2badd7b9ac0886d0fbcd25f0489b 100644 (file)
@@ -120,7 +120,7 @@ document.addEventListener('DOMContentLoaded', () => {
 
   // Add a keyboard event to close all modals
   document.addEventListener('keydown', (event) => {
-    if (event.code === 'Escape') {
+    if(e.key === "Escape") {
       closeAllModals();
     }
   });