Skip to content

Commit 57c0568

Browse files
committed
refactor(core): nullify the __ngt_dom_parent__ for HTML component
1 parent f739b89 commit 57c0568

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/core/src/lib/html.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export abstract class NgtHTML {
4949
}
5050

5151
this.destroyRef.onDestroy(() => {
52+
(this.host.nativeElement as NgtAnyRecord)['__ngt_dom_parent__'] = null;
5253
delete (this.host.nativeElement as NgtAnyRecord)['__ngt_dom_parent__'];
5354
});
5455
}

0 commit comments

Comments
 (0)