Merge pull request #1403 from umap-project/fix-1400

Fix next/previous in popup footer in panel not openning next panel
This commit is contained in:
Yohan Boniface 2023-11-14 18:15:36 +01:00 committed by GitHub
commit 686ce1fe2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,6 +120,9 @@ L.U.PopupTemplate.Default = L.Class.extend({
nextLi = L.DomUtil.create('li', 'next', footer),
next = this.feature.getNext(),
prev = this.feature.getPrevious()
// Fixme: remove me when this is merged and released
// https://github.com/Leaflet/Leaflet/pull/9052
L.DomEvent.disableClickPropagation(footer)
if (next)
nextLi.title = L._('Go to «{feature}»', {
feature: next.properties.name || L._('next'),