[solved]p-tree with filter can't select item

UI Components for Angular
Post Reply
rokimoki
Posts: 29
Joined: 28 Jun 2019, 16:04

14 Feb 2020, 14:34

Replication in the example: https://www.primefaces.org/primeng/#/tree

How can I select an item when filtering? The item selected is the first in the tree.

Thanks.
Last edited by rokimoki on 14 Feb 2020, 14:41, edited 1 time in total.

rokimoki
Posts: 29
Joined: 28 Jun 2019, 16:04

14 Feb 2020, 14:41

Found:
https://stackblitz.com/edit/github-pw4fpt

viewtopic.php?t=58524

Solution: Add key in the TreeNode structure data.

Maybe update the example for more specification.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests