Only instantiate the first child
This commit is contained in:
parent
6c58cbcf51
commit
c53947a94a
@ -330,7 +330,6 @@ class DisplayGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static _instantiateTemplate(template) {
|
static _instantiateTemplate(template) {
|
||||||
const content = document.importNode(template.content, true);
|
return document.importNode(template.content.firstChild, true);
|
||||||
return content.firstChild;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user