p-treeTableHeaderCheckbox doesn't select/unselect all when TreeTable has dataKey property #13731
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
The top select-all checkbox doesn't work if p-treeTable dataKey property is used (e.g. <p-treeTable dataKey="name").
The root nodes are not selected and nothing happens if I click the second time. Only child nodes are selected
Environment
Angular version: 16.X
PrimeNG version: 16.X
Browser: all
Reproducer
https://stackblitz.com/edit/github-bcnczx-uak4ao?file=src%2Fapp%2Fapp.component.html
Angular version
16.x
PrimeNG version
16.x
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.x
Browser(s)
No response
Steps to reproduce the behavior
Just use "dataKey" property for the p-treeTable and try to use p-treeTableHeaderCheckbox
Expected behavior
Click the top select-all checkbox should select or unselect all the nodes.
The text was updated successfully, but these errors were encountered: