From 8437621981554dc5bbd5d32d4c9809211f9f0ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=B3=20Albert=20i=20Beltran?= Date: Thu, 23 Jul 2026 18:30:43 +0200 Subject: [PATCH] fix: allow map popup to reopen after being closed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clicking on the map only opened the popup on the very first click. Subsequent clicks were silently ignored. The onMapNormalLeftClick handler used Leaflet's internal map._popup property to detect whether a popup was currently open. After the ClickSearchPopup marker was removed from the map, this reference could persist as stale and non-null, causing every following click to believe a popup was still active. The leftClickSearching flag already tracks whether our popup is open, making the map._popup check redundant. Removing it restores the expected open/close toggle behavior. Signed-off-by: Simó Albert i Beltran --- src/components/Map.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Map.vue b/src/components/Map.vue index 2476275ae..ac2923c71 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -370,7 +370,6 @@ export default { const thereWasAPopup = this.map.contextmenu._visible || this.placingContact - || (this.map._popup !== undefined && this.map._popup !== null) || this.leftClickSearching const hadSpider = this.$refs.favoritesLayer?.spiderfied