From c6bea2a57369b9c5b5164b1c2453d25c5b4e3f24 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sat, 27 Jun 2020 10:25:31 +1000 Subject: [PATCH] Add comment to map menu --- src/components/map/MapMenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/map/MapMenu.js b/src/components/map/MapMenu.js index a9bebbe..5fb8782 100644 --- a/src/components/map/MapMenu.js +++ b/src/components/map/MapMenu.js @@ -79,6 +79,7 @@ function MapMenu({ }} contentRef={handleModalContent} > + {/* Stop keyboard events when modal is open to prevent shortcuts from triggering */}
e.stopPropagation()} onKeyUp={(e) => e.stopPropagation()}