From 8701358b2b908bc79a09d7c9f70ecb1ba007f276 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 16 Jun 2023 19:06:31 +0200 Subject: [PATCH] Remove DOM unused element from popup --- umap/static/umap/js/umap.popup.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/umap/static/umap/js/umap.popup.js b/umap/static/umap/js/umap.popup.js index b6eb317f..b65807f0 100644 --- a/umap/static/umap/js/umap.popup.js +++ b/umap/static/umap/js/umap.popup.js @@ -116,12 +116,7 @@ L.U.PopupTemplate.Default = L.Class.extend({ renderFooter: function () { if (this.feature.hasPopupFooter()) { - const footerContainer = L.DomUtil.create( - 'div', - 'umap-footer-container', - this.container - ), - footer = L.DomUtil.create('ul', 'umap-popup-footer', footerContainer), + const footer = L.DomUtil.create('ul', 'umap-popup-footer', this.container), previousLi = L.DomUtil.create('li', 'previous', footer), zoomLi = L.DomUtil.create('li', 'zoom', footer), nextLi = L.DomUtil.create('li', 'next', footer),