From 9e33144d34433b55226aad4a0fe03da1e6245a4b Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 13 Nov 2023 21:12:53 +0100 Subject: [PATCH] Fix next/previous in popup footer in panel not openning next panel fix #1400 cf #1240 --- 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 9487890c..372f6084 100644 --- a/umap/static/umap/js/umap.popup.js +++ b/umap/static/umap/js/umap.popup.js @@ -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'),