mirror of
https://github.com/gosticks/react-table.git
synced 2026-06-29 01:20:02 +00:00
isAllRowsSelected can only be true if there are rows. (#1504)
This commit is contained in:
@@ -38,7 +38,7 @@ function useMain(instance) {
|
||||
[]
|
||||
)
|
||||
|
||||
const isAllRowsSelected = rowPaths.length === selectedRows.length
|
||||
const isAllRowsSelected = rowPaths.length > 0 && rowPaths.length === selectedRows.length
|
||||
|
||||
const toggleRowSelectedAll = set => {
|
||||
setState(old => {
|
||||
|
||||
Reference in New Issue
Block a user