Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p-treeTableHeaderCheckbox doesn't select/unselect all when TreeTable has dataKey property #13731

Closed
ABiBE opened this issue Sep 25, 2023 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@ABiBE
Copy link

ABiBE commented Sep 25, 2023

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.

@ABiBE ABiBE added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 25, 2023
@ABiBE ABiBE closed this as completed May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant