Skip to content

Commit

Permalink
fix bad references in ModalOverlay
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Nov 30, 2023
1 parent 6089312 commit 2071fbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/UI/ModalOverlay.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Common modal WebComponent for both AnchoredOverlay and Modal
// Common modal WebComponent for both AnchoredOverlay and Modalmodal
// which adds keyboard shortcuts and focus
//
// <modal-overlay on-escape="..." on-enter="...">
Expand All @@ -15,8 +15,8 @@ class ModalOverlay extends HTMLElement {

onKeydown(ev) {
if (ev.key === "Escape") {
evt.preventDefault();
evt.stopPropagation();
ev.preventDefault();
ev.stopPropagation();

this.dispatchEvent(new CustomEvent('escape'));
}
Expand Down

0 comments on commit 2071fbd

Please sign in to comment.