primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Table select all checkbox deselect disabled selected checkboxes

Open volkorros opened this issue 2 years ago • 5 comments

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

  1. Open repro project
  2. 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

volkorros avatar Jun 03 '24 15:06 volkorros

Guys any updates?

volkorros avatar Jun 05 '24 13:06 volkorros

same here! +1

MaksymPlotnikov avatar Jun 05 '24 17:06 MaksymPlotnikov

+1

roman-bychkov avatar Jun 25 '24 10:06 roman-bychkov

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

image

Due to this change a row checkbox can either be checked (selected) or disabled, but not both at the same time.

MaurizioCasciano avatar Oct 24 '24 14:10 MaurizioCasciano

Hello! Is there any planned fix? Toggle off header checkbox change value for disabled toggle in row

volkorros avatar Apr 02 '26 13:04 volkorros