Merge pull request #1705 from umap-project/1700-see-all

fix: See all button closing panel
This commit is contained in:
David Larlet 2024-03-22 13:01:57 -04:00 committed by GitHub
commit 851b1daf33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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