Remove DOM unused element from popup

This commit is contained in:
Yohan Boniface 2023-06-16 19:06:31 +02:00
parent fef82818e1
commit 8701358b2b

View file

@ -116,12 +116,7 @@ L.U.PopupTemplate.Default = L.Class.extend({
renderFooter: function () { renderFooter: function () {
if (this.feature.hasPopupFooter()) { if (this.feature.hasPopupFooter()) {
const footerContainer = L.DomUtil.create( const footer = L.DomUtil.create('ul', 'umap-popup-footer', this.container),
'div',
'umap-footer-container',
this.container
),
footer = L.DomUtil.create('ul', 'umap-popup-footer', footerContainer),
previousLi = L.DomUtil.create('li', 'previous', footer), previousLi = L.DomUtil.create('li', 'previous', footer),
zoomLi = L.DomUtil.create('li', 'zoom', footer), zoomLi = L.DomUtil.create('li', 'zoom', footer),
nextLi = L.DomUtil.create('li', 'next', footer), nextLi = L.DomUtil.create('li', 'next', footer),