Skip to content

Commit

Permalink
fix: fallback to parentNode on removeChild (undocumented breaking cha…
Browse files Browse the repository at this point in the history
  • Loading branch information
edusperoni committed Sep 18, 2024
1 parent f1e2029 commit a93c771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/src/lib/nativescript-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class NativeScriptRenderer implements Renderer2 {
if (NativeScriptDebug.enabled) {
NativeScriptDebug.rendererLog(`NativeScriptRenderer.removeChild child: ${oldChild} parent: ${parent}`);
}
this.viewUtil.removeChild(parent, oldChild);
this.viewUtil.removeChild(parent ?? oldChild.parentNode, oldChild);
}
selectRootElement(selectorOrNode: any, preserveContent?: boolean) {
if (NativeScriptDebug.enabled) {
Expand Down

0 comments on commit a93c771

Please sign in to comment.