fix: picto category title was added after the related pictograms

This commit is contained in:
Yohan Boniface 2024-02-20 12:25:00 +01:00
parent 0de52cd1f6
commit ab8c69e990

View file

@ -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