Skip to content

Commit eb86d3e

Browse files
committed
refactor(renderer): stop setting templateParents to ProxyViewContainers
1 parent 580d1c1 commit eb86d3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nativescript-angular/renderer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export const HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
2323
export const CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
2424
const ATTR_SANITIZER = /-/g;
2525

26-
2726
@Injectable()
2827
export class NativeScriptRendererFactory implements RendererFactory2 {
2928
private componentRenderers = new Map<string, NativeScriptRenderer>();

nativescript-angular/view-util.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ export class ViewUtil {
6565

6666
this.addToQueue(parent, child, previous, next);
6767

68-
if (isDetachedElement(child)) {
68+
if (child instanceof InvisibleNode) {
6969
child.templateParent = parent;
70-
} else {
70+
}
71+
72+
if (!isDetachedElement(child)) {
7173
this.addToVisualTree(parent, child, next);
7274
}
7375
}

0 commit comments

Comments
 (0)