Tree filter onNodeSelect gives incorrect node

UI Components for Angular
Post Reply
NDMan
Posts: 1
Joined: 26 Nov 2020, 12:37

21 Oct 2021, 13:55

Example https://stackblitz.com/edit/primeng-tre ... onent.html

In the Example I type 'doc' in the filter. Then I click on Expenses.doc. onNodeSelected is triggered, which calls nodeSelect($event). The event does not return the node Expenses.doc, but it returns always the first Node, which is Documents.

I want to get the selected Node, which in this case is Expenses.doc, I tried with [(selection)]="selectedFile", but this also returns the first Node, which is Documents.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests