Skip to content

Commit

Permalink
fix(material/form-builder): Added forwardRef to childEntries queryList.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Tozzi authored and robzan8 committed May 10, 2024
1 parent 89cf41d commit c0a3cc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/material/form-builder/src/node-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
ChangeDetectionStrategy,
Component,
ElementRef,
forwardRef,
Input,
OnDestroy,
QueryList,
Expand Down Expand Up @@ -67,7 +68,8 @@ const branchColors: string[] = [
})
export class AjfFbNodeEntry implements AfterViewInit, OnDestroy {
@ViewChildren(AjfFbBranchLine) branchLines!: QueryList<AjfFbBranchLine>;
@ViewChildren(AjfFbNodeEntry, {read: ElementRef}) childEntries!: QueryList<ElementRef>;
@ViewChildren(forwardRef(() => AjfFbNodeEntry), {read: ElementRef})
childEntries!: QueryList<ElementRef>;

private _hasContent = false;
get hasContent(): boolean {
Expand Down

0 comments on commit c0a3cc1

Please sign in to comment.