Table select all checkbox deselect disabled selected checkboxes
Describe the bug
Select/Unselect all checkbox should not affect disabled checkboxes (making them unselected now)
Connected to #15338
Environment
Google Chrome. MacOS
Reproducer
https://stackblitz.com/edit/e6puho?file=src%2Fapp%2Ftable-checkbox-selection-demo.html
Angular version
17
PrimeNG version
17.18
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.13
Browser(s)
Chrome 125.0
Steps to reproduce the behavior
- Open repro project
- Click Select all in header
Expected behavior
All checkboxes become to be selected and on "unselect all" click all not disabled checkboxes become to be unselect. Expected behavior - don't change the state of disabled checkboxes
Guys any updates?
same here! +1
+1
Same here with 17.18.11
Disabled row checkboxes shouldn't be changed/unselected by the Table unselect all checkbox. The same thing (disabled checbox unselection) when checking/unchecking another row checkbox (not disabled).
The issue was introduced in https://github.com/primefaces/primeng/releases/tag/17.17.0 in an attempt to fix the issue https://github.com/primefaces/primeng/issues/15338 via the PR https://github.com/primefaces/primeng/pull/15591
Due to this change a row checkbox can either be checked (selected) or disabled, but not both at the same time.
Hello! Is there any planned fix? Toggle off header checkbox change value for disabled toggle in row