Skip to content

Commit

Permalink
Merge branch 'fix/checkbox-unselected-if-no-rows' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra committed Jul 9, 2024
2 parents f61380f + 906ec75 commit 1624939
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/InfiniteTable/InfiniteTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ const InfiniteTableComp = forwardRef<InfiniteTableRef, InfiniteTableProps>(
<HeaderCheckbox
totalRows={totalRows}
selectedRowKeysLength={internalSelectedRowKeys.length}
allRowSelected={totalRows === internalSelectedRowKeys.length}
allRowSelected={
totalRows === internalSelectedRowKeys.length && totalRows > 0
}
allRowSelectedMode={allRowSelectedMode}
onHeaderCheckboxChange={onHeaderCheckboxChange}
/>
Expand Down

0 comments on commit 1624939

Please sign in to comment.