Skip to content

Commit

Permalink
fix(core): call signal for parent() in remove child
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Aug 15, 2024
1 parent 2691fd0 commit ca711d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/src/lib/renderer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class NgtRenderer implements Renderer2 {

removeChild(parent: NgtRendererNode | null, oldChild: NgtRendererNode, isHostElement?: boolean | undefined): void {
if (parent == null) {
parent = (untracked(() => getLocalState(oldChild)?.parent) ||
parent = (untracked(() => getLocalState(oldChild)?.parent()) ||
oldChild.__ngt_renderer__[NgtRendererClassId.parent]) as NgtRendererNode;
}

Expand Down

0 comments on commit ca711d7

Please sign in to comment.