diff --git a/src/components/data/datagrid/datagridselectioncheckbox.tsx b/src/components/data/datagrid/datagridselectioncheckbox.tsx index da09dfc..f594d21 100644 --- a/src/components/data/datagrid/datagridselectioncheckbox.tsx +++ b/src/components/data/datagrid/datagridselectioncheckbox.tsx @@ -44,9 +44,9 @@ export const DataGridSelectionCheckbox: React.FC< switch (selectAll) { case "page": - allSelected = - selectedRows?.every((a) => renderableRows.includes(a)) && - renderableRows.every((a) => selectedRows.includes(a)); + allSelected = renderableRows?.every((a, index) => + equalityChecker(a, selectedRows[index]), + ); checked = allSelected || false; disabled = Boolean(allPagesSelectedManaged && allPagesSelected); handleSelect = () => onSelectAll(!allSelected);