Skip to content

Commit a93c771

Browse files
committed
fix: fallback to parentNode on removeChild (undocumented breaking change from angular/angular#57203)
1 parent f1e2029 commit a93c771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/angular/src/lib/nativescript-renderer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class NativeScriptRenderer implements Renderer2 {
268268
if (NativeScriptDebug.enabled) {
269269
NativeScriptDebug.rendererLog(`NativeScriptRenderer.removeChild child: ${oldChild} parent: ${parent}`);
270270
}
271-
this.viewUtil.removeChild(parent, oldChild);
271+
this.viewUtil.removeChild(parent ?? oldChild.parentNode, oldChild);
272272
}
273273
selectRootElement(selectorOrNode: any, preserveContent?: boolean) {
274274
if (NativeScriptDebug.enabled) {

0 commit comments

Comments
 (0)