Skip to content

Commit 610d56f

Browse files
committed
fix(core): return early if there is namespace during createElement
1 parent dc50932 commit 610d56f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libs/core/src/lib/renderer/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ export class NgtRenderer implements Renderer2 {
8989
createElement(name: string, namespace?: string | null | undefined) {
9090
const element = this.delegate.createElement(name, namespace);
9191

92+
// if there's namespace, we don't do anything
93+
if (namespace) {
94+
return createNode('dom', element, this.document);
95+
}
96+
9297
// on first pass, we return the Root Scene as the root node
9398
if (this.isRoot) {
9499
this.isRoot = false;

0 commit comments

Comments
 (0)