carbon-addons-iot-react
carbon-addons-iot-react copied to clipboard
[Table] Select/Deselect all options checkbox in Table is not working properly
What package is this for?
- [ ] React
- [x] Angular
Describe the bug
In the top left side of the table, we get a checkbox to select/deselect all options. It acts weird if one or more items in the table in selected AND disabled.
The one highlighted in blue

To Reproduce
Steps to reproduce the behavior:
-
Create a carbon table
-
Make sure to have at least one row as selected AND disabled, as shown in the picture

-
Try clicking on the top-left most checkbox of the table to Select/Deselect all the table items
-
On the initial click, all the items will be selected (work fine), but from the next click the checkbox doesn’t work as required
Expected behavior
It should select/deselect all the items on alternate clicks for all the cases OR If 'selecting all' is not supposed to be allowed when we have a disabled table item, then the button should be disabled
Additional context
https://user-images.githubusercontent.com/111842352/215670490-dd82c98f-3fe4-4d40-b015-9e37723e59cc.mov