From d1784b64a827e1d03bb0b6a38385346cf3366f5a Mon Sep 17 00:00:00 2001 From: David Larlet Date: Fri, 22 Mar 2024 12:30:04 -0400 Subject: [PATCH] fix: See all button closing panel Fixes #1700 --- umap/static/umap/js/umap.popup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umap/static/umap/js/umap.popup.js b/umap/static/umap/js/umap.popup.js index 035a7501..3b519981 100644 --- a/umap/static/umap/js/umap.popup.js +++ b/umap/static/umap/js/umap.popup.js @@ -59,6 +59,9 @@ U.Popup.Panel = U.Popup.extend({ L.DomUtil.create('i', 'umap-icon-16 umap-list', button) const label = L.DomUtil.create('span', '', button) label.textContent = label.title = L._('See all') + // Fixme: remove me when this is merged and released + // https://github.com/Leaflet/Leaflet/pull/9052 + L.DomEvent.disableClickPropagation(button) L.DomEvent.on(button, 'click', this.feature.map.openBrowser, this.feature.map) return button },