Skip to content

Commit

Permalink
🐛 - fix: fix a bug that could cause the select all checkbox to remain…
Browse files Browse the repository at this point in the history
… unchecked
  • Loading branch information
svenvandescheur committed Oct 11, 2024
1 parent 6e76ceb commit f4a4ffc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/data/datagrid/datagridselectioncheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f4a4ffc

Please sign in to comment.