P-Tree No value Accessor for form control with path

UI Components for Angular
Post Reply
Anthony1
Posts: 2
Joined: 25 Mar 2019, 15:27

25 Mar 2019, 15:36

Good morning! I have been trying to get a p-tree incorporated into my reactive form. However, I keep getting an error whenever I try to add "formControlName" to my P-Tree.
"No value accessor for form control with path"

<p-tree
[value]="name"
id="nameFirst"
formControlName="names"
selectionMode="multiple"
[(selection)]="allNames"
(onNodeSelect)="nodeSelect($event)"
>
</p-tree>

I have the formControlName correct, I have matched this to most of the other dropdowns I have made. While the form has no issue with other parts, it just can't work with p-trees apparently. Any ideas??

lechnow31
Posts: 1
Joined: 11 Sep 2019, 09:35

11 Sep 2019, 09:38

Hello,

Did you find any fix for this issue ?

Best regards

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests