Skip to content

Commit

Permalink
feat: add arbitrary nodes (including svg) as template children
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiksta committed Nov 14, 2023
1 parent 14af766 commit ee47b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ export default abstract class Component<
const rendered = this._renderTemplate(t);
if (slot !== 'default') rendered.slot = slot;
addTo.appendChild(rendered);
} else if (t instanceof HTMLElement) { // case (3)
} else if (t instanceof Node) { // case (3)
addTo.append(t);
} else {
addTo.append(t.toString());
Expand Down

0 comments on commit ee47b9d

Please sign in to comment.