We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5965ab5 commit 25e9ed8Copy full SHA for 25e9ed8
src/gui/src/UI/UIElement.js
@@ -40,7 +40,12 @@ export default def(class UIElement extends AdvancedBase {
40
41
const attrs = {};
42
for ( const a_or_c of a ) {
43
- if ( Array.isArray(a_or_c) ) {
+ if ( typeof a_or_c === 'string' ) {
44
+ el.innerText += a_or_c;
45
+ }
46
+ else if ( a_or_c instanceof HTMLElement ) {
47
+ el.appendChild(a_or_c);
48
+ } if ( Array.isArray(a_or_c) ) {
49
for ( const child of a_or_c ) {
50
el.appendChild(child);
51
}
0 commit comments