'Select all' also selects disabled checkboxes / rows
See original GitHub issueDescribe the bug A disabled checkbox can’t be checked normally, but when you click ‘select all’, the disabled checkboxes are selected. The header bar indicates the selected rows as well.
To Reproduce Add ‘selection: true’, and something like
selectionProps: (rowData) => ({
disabled: rowData.active === 'no'
})
Click the ‘select all’.
Expected behavior Disabled rows can never be selected, not on checkbox-click, and not with ‘select all’
Screenshots
(2 rows, disabled from selecting)
(after ‘select all’)
Desktop (please complete the following information):
- MT version 1.39.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:20
- Comments:18 (4 by maintainers)
Top Results From Across the Web
Problem - select all checkbox selects disabled row - Telerik
Hello, I have a grid and I'm disabled the row that has the approved FALSE, but when I check Select All it checks...
Read more >React-table with disabled checkboxes - T Sai Deepak - Medium
Recently I wanted to implement a table with row selection and I had some disabled checkboxes in my data, what I observed is...
Read more >Exclude disabled checkboxes when using Select All
I have added one checkbox outside the table "Select All" with id "chkbox". Now the below code is working fine. It is Selecting...
Read more >The "select all" checkbox selects disabled check boxes
Hello, I'm using the settings.CommandColumn.SelectAllCheckboxMode property set to GridView SelectAllCheckBoxMode.Page.
Read more >'Select all' Checkbox also selects disabled checkboxes / rows
'Select all' also selects disabled checkboxes / rows. Expected: Disabled rows can never be selected, not on checkbox-click, and not with 'select all'....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here is the solution, although there select all gets a little buggy, not sure how to work around that:
https://stackblitz.com/edit/react-9prvyj
Any update for this issue ?