Skip to content
Discussion options

You must be logged in to vote

The two tree levels are not the problem. The binding writes the wrong runtime shape into the Signal Forms model.

Your field is a string, but PrimeNG TreeSelect emits the selected TreeNode object: the Tree sets its single selection to node (source), and TreeSelect passes that object directly to its ControlValueAccessor callback (source). The data: "general-masonry" property does not make TreeSelect emit that string.

That changes activitySector from a string leaf into a TreeNode object while Angular is maintaining its field tree, which explains the recursive signal stack. Keep the form model primitive and adapt the TreeSelect value:

import { TreeNode } from "primeng/api";
import { FieldTree } 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cetincakiroglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants