From ab8c69e990e862114b40a10ddee45580d0c0cd28 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 20 Feb 2024 12:25:00 +0100 Subject: [PATCH] fix: picto category title was added after the related pictograms --- umap/static/umap/js/umap.forms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.forms.js b/umap/static/umap/js/umap.forms.js index 30d73020..2d28a026 100644 --- a/umap/static/umap/js/umap.forms.js +++ b/umap/static/umap/js/umap.forms.js @@ -672,9 +672,9 @@ L.FormBuilder.IconUrl = L.FormBuilder.BlurInput.extend({ }, addCategory: function (items, name) { - const parent = L.DomUtil.create('div', 'umap-pictogram-category'), - grid = L.DomUtil.create('div', 'umap-pictogram-grid', parent) + const parent = L.DomUtil.create('div', 'umap-pictogram-category') if (name) L.DomUtil.add('h6', '', parent, name) + const grid = L.DomUtil.create('div', 'umap-pictogram-grid', parent) let status = false for (let item of items) { status = this.addIconPreview(item, grid) || status