Open gpaschke opened 1 year ago
Selecting a node on a filtered tree will always return the first tree node in $event using (onNodeSelect)="selectNode($event)" or [(selection)]
(onNodeSelect)="selectNode($event)"
[(selection)]
See below
https://stackblitz.com/edit/github-x5dcwr?file=src/app/app.component.html
15.1.0
15.2.0
Angular CLI App
TypeScript
19.7.0
No response
Selecting a node on a filtered tree should update the selected tree node [(selection)] (onNodeSelect) -> $event.
16.8 same
@mastersys-giovanni @gpaschke its because of this https://github.com/primefaces/primeng/issues/11418#issuecomment-1098225766
missing key for node
Describe the bug
Selecting a node on a filtered tree will always return the first tree node in $event using
(onNodeSelect)="selectNode($event)"
or[(selection)]
Environment
See below
Reproducer
https://stackblitz.com/edit/github-x5dcwr?file=src/app/app.component.html
Angular version
15.1.0
PrimeNG version
15.2.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
19.7.0
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Selecting a node on a filtered tree should update the selected tree node [(selection)] (onNodeSelect) -> $event.