Fix next/previous in popup footer in panel not openning next panel

fix #1400
cf #1240
This commit is contained in:
Yohan Boniface 2023-11-13 21:12:53 +01:00
parent c16a01778b
commit 9e33144d34

View file

@ -120,6 +120,9 @@ L.U.PopupTemplate.Default = L.Class.extend({
nextLi = L.DomUtil.create('li', 'next', footer), nextLi = L.DomUtil.create('li', 'next', footer),
next = this.feature.getNext(), next = this.feature.getNext(),
prev = this.feature.getPrevious() 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) if (next)
nextLi.title = L._('Go to «{feature}»', { nextLi.title = L._('Go to «{feature}»', {
feature: next.properties.name || L._('next'), feature: next.properties.name || L._('next'),