diff --git a/umap/static/umap/js/umap.core.js b/umap/static/umap/js/umap.core.js index 79c4021d..156d15c7 100644 --- a/umap/static/umap/js/umap.core.js +++ b/umap/static/umap/js/umap.core.js @@ -98,7 +98,9 @@ L.DomUtil.createFieldset = (container, legend, options) => { L.DomUtil.createButton = (className, container, content, callback, context) => { const el = L.DomUtil.add('button', className, container, content) el.type = 'button' - el.title = content + if (!content.nodeType) { + el.title = content + } if (callback) { L.DomEvent.on(el, 'click', L.DomEvent.stop).on(el, 'click', callback, context) }