Skip to content

Commit 0b8d2c5

Browse files
VladimirAmiorkovAlexander Vakrilov
authored and
Alexander Vakrilov
committed
fix: Persist the original "parentNode" when "retrieving" the root View created by createEmbeddedView (#1542)
1 parent 487abb2 commit 0b8d2c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: nativescript-angular/element-registry.ts

+2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ export function getSingleViewRecursive(nodes: Array<any>, nestLevel: number): Vi
153153

154154
const parentLayout = rootLayout.parent;
155155
if (parentLayout instanceof LayoutBase) {
156+
let node = rootLayout.parentNode;
156157
parentLayout.removeChild(rootLayout);
158+
rootLayout.parentNode = node;
157159
}
158160

159161
return rootLayout;

0 commit comments

Comments
 (0)