Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
fix(core): use skipParent getter instead
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Apr 19, 2022
1 parent 992d86f commit 956f225
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/core/src/lib/abstracts/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ export abstract class NgtInstance<
}

get parent(): NgtRef {
const skipParent = this.get((s) => s.skipParent);
if (!skipParent) return this.parentRef?.();
if (!this.skipParent) return this.parentRef?.();
return this.parentHostRef?.() || this.parentRef?.();
}

Expand Down
Empty file.
Empty file.

0 comments on commit 956f225

Please sign in to comment.