fix: See all button closing panel

Fixes #1700
This commit is contained in:
David Larlet 2024-03-22 12:30:04 -04:00
parent 985483b7d0
commit d1784b64a8
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD

View file

@ -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
},