-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
feature: SelectionRelated to the data grid Selection featureRelated to the data grid Selection featurescope: data gridChanges related to the data grid.Changes related to the data grid.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Steps to reproduce
Steps:
- Open this link to live example: (required)
- https://codesandbox.io/embed/zfh88l?module=/src/Demo.tsx&fontsize=12
- (It's easier to reduce the number of rows, for example to 2)
- Select all entries with the checkbox in the header
- Deselect all entries in the data-grid one by one with the checkbox in the rows
Current behavior
After deselecting all entries, the checkbox in the header still has the indeterminate state.

Deselecting all entries with the checkbox in the header, then selecting all entries one by one and then deselecting again one by one does not produce the indeterminate header checkbox. Only selecting all entries with the header checkbox, then deselecting all entries one by one.
Expected behavior
After deselecting all entries, the checkbox in the header should no longer be indeterminate.
Context
No response
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Search keywords: data-grid indeterminate
Metadata
Metadata
Assignees
Labels
feature: SelectionRelated to the data grid Selection featureRelated to the data grid Selection featurescope: data gridChanges related to the data grid.Changes related to the data grid.type: bugIt doesn't behave as expected.It doesn't behave as expected.