From 780cf3860d440a7c828fb9c978072ca0c1835918 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Mon, 24 May 2021 19:26:45 +0100 Subject: [PATCH] Fix build --- src/components/map/MapContextMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/MapContextMenu.vue b/src/components/map/MapContextMenu.vue index 248820f..81dcecb 100644 --- a/src/components/map/MapContextMenu.vue +++ b/src/components/map/MapContextMenu.vue @@ -124,7 +124,7 @@ export default defineComponent({ }); window.addEventListener('contextmenu', e => { - if(e.target.classList.contains('leaflet-zoom-animated')) { + if(e.target && e.target instanceof HTMLElement && e.target.classList.contains('leaflet-zoom-animated')) { e.preventDefault(); } });