diff --git a/src/components/gltf-model-plus.js b/src/components/gltf-model-plus.js index d9ff8d8ff722388d3b0a63f4731d5541e91bde5e..41b6b50200ad273fdc5729866a9809245c3c23ff 100644 --- a/src/components/gltf-model-plus.js +++ b/src/components/gltf-model-plus.js @@ -154,8 +154,8 @@ function attachTemplate(root, { selector, templateRoot }) { } // Append all child elements - for (const child of root.children) { - el.appendChild(child); + while (root.children.length > 0) { + el.appendChild(root.children[0]); } } }