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 () {
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),