From 13d49e6b5fde6057874487d73c4985089faed88e Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Fri, 24 Mar 2023 09:13:35 +0100 Subject: [PATCH] Menu now closes when clicking --- client/src/map/map.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/map/map.ts b/client/src/map/map.ts index 5fd71279..626532d5 100644 --- a/client/src/map/map.ts +++ b/client/src/map/map.ts @@ -228,6 +228,7 @@ export class Map extends L.Map { #onMouseDown(e: any) { + this.hideAllContextMenus(); if ((e.originalEvent.which == 1) && (e.originalEvent.button == 0)) this.dragging.disable(); }