Describe the bug
Hello!
The table method getToggleAllRowsSelectedHandler is selecting all rows, even the ones which return false for the getCanSelect row check. I don't know if this is either a bug or intended behaviour though.
Your minimal, reproducible example
https://codesandbox.io/s/romantic-silence-sh1x95
Steps to reproduce
- First, notice that by table definition in line 115, only rows with age greater than 18 should be able to be selected.
enableRowSelection: (row) => row.original.age > 18,
- Check that the checkboxes for ages smaller than 18 are disabled.
- Tick select all. All the boxes will be checked, even the disabled ones.
Expected behavior
The disabled checkboxes should not be checked.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
React 18, Chrome 103, Windows 10.
react-table version
8.2.0
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
Describe the bug
Hello!
The table method
getToggleAllRowsSelectedHandleris selecting all rows, even the ones which return false for thegetCanSelectrow check. I don't know if this is either a bug or intended behaviour though.Your minimal, reproducible example
https://codesandbox.io/s/romantic-silence-sh1x95
Steps to reproduce
enableRowSelection: (row) => row.original.age > 18,Expected behavior
The disabled checkboxes should not be checked.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
React 18, Chrome 103, Windows 10.
react-table version
8.2.0
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct