p-tree: Incorrect node passed in onNodeSelect when [filter]="true" #15063
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
If you have a
<p-tree>
component and set[filter]="true"
on it, when you filter the tree the wrong node is passed into the onNodeSelect() function.Repro:
https://stackblitz.com/edit/github-tayhsx
Type "123" into the filter, and click "123". Note that the displayed node is the parent, not the one that was clicked.
Environment
Angular 17.2.4
PrimeNG 17.8.0
Reproducer
https://stackblitz.com/edit/github-tayhsx
Angular version
17.2.4
PrimeNG version
17.8.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Expect: Shows "123"
Result: Shows "Parent Node"
The text was updated successfully, but these errors were encountered: