hide undefined
label in colorpicker in FF
This commit is contained in:
parent
0f3ba30066
commit
cd88aff733
|
@ -79,7 +79,7 @@
|
|||
}
|
||||
const el = document.createElement(props.tag || 'div');
|
||||
el.className = toArray(cls).map(c => c ? CSS_PREFIX + c : '').join(' ');
|
||||
el.append(...toArray(children));
|
||||
el.append(...toArray(children).filter(Boolean));
|
||||
if (props) delete props.tag;
|
||||
return Object.assign(el, props);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user