Skip to content

Commit

Permalink
[DataGridPro] Fix indeterminate checkbox state for server-side data (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi authored Oct 16, 2024
1 parent 0ac2514 commit aa40880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/x-data-grid/src/hooks/features/rowSelection/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export function getCheckboxPropsSelector(groupId: GridRowId, autoSelectParents:
}
return {
isIndeterminate:
(selectedDescendantsCount > 0 && selectedDescendantsCount < selectableDescendantsCount) ||
(selectedDescendantsCount === selectableDescendantsCount &&
selectedDescendantsCount > 0 &&
(selectedDescendantsCount < selectableDescendantsCount ||
rowSelectionLookup[groupId] === undefined),
isChecked: autoSelectParents
? selectedDescendantsCount > 0
Expand Down

0 comments on commit aa40880

Please sign in to comment.