Skip to content

Commit

Permalink
Fix #4284: Correct Select All behavior in checkbox selection mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ulasturann committed Apr 25, 2023
1 parent 37baea8 commit 21a3e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export const DataTable = React.forwardRef((inProps, ref) => {
const val = ObjectUtils.isNotEmpty(props.frozenValue) ? [...props.frozenValue, ...data] : data;
const selectableVal = getSelectableData(val);

return selectableVal && props.selection && selectableVal.every((sv) => props.selection.some((s) => isEquals(s, sv)));
return ObjectUtils.isNotEmpty(selectableVal) && props.selection && selectableVal.every((sv) => props.selection.some((s) => isEquals(s, sv)));
}
};

Expand Down

0 comments on commit 21a3e5b

Please sign in to comment.