We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8fce5 commit 19ac5a3Copy full SHA for 19ac5a3
src/DataTable/TableColCheckbox.js
@@ -28,7 +28,8 @@ const TableColCheckbox = ({ head }) => {
28
const indeterminate = selectedRows.length > 0 && !allSelected;
29
const rows = selectableRowDisabled ? data.filter(row => !selectableRowDisabled(row)) : data;
30
const isDisabled = rows.length === 0;
31
- const rowCount = data.length;
+ // The row count should subtrtact rows that are disabled
32
+ const rowCount = Math.min(data.length, rows.length);
33
34
const handleSelectAll = useCallback(() => dispatch({
35
type: 'SELECT_ALL_ROWS',
0 commit comments