Describe the bug#
Even if the table is provided with enableSubRowSelection: false, calling a handler from getToggleAllRowsSelectedHandler will still select all rows.
Your minimal, reproducible example#
https://codesandbox.io/p/sandbox/focused-ben-wfks52?embed=1&file=%2Fsrc%2Fmain.tsx%3A148%2C5
Steps to reproduce#
- Select all columns from the header
- Expandable columns are selected even if the enableSubRowSelection = false
Expected behavior#
Expandable rows should not be selected if enableSubRowSelection = false
How often does this bug happen?#
Every time
Screenshots or Videos#
No response
Platform#
Chrome, Mac
react-table version#
8.10.3
TypeScript version#
5.1.3
Additional context#
No response
Terms & Code of Conduct#