Skip to content

Commit

Permalink
fix regressino
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jun 17, 2021
1 parent c9151bd commit a8f41dd
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -24,7 +24,8 @@ export const GridHeaderCheckbox = React.forwardRef<HTMLInputElement, GridColumnH
const totalRows = useGridSelector(apiRef, gridRowCountSelector);

const isIndeterminate = totalSelectedRows > 0 && totalSelectedRows !== totalRows;
const isChecked = totalSelectedRows === totalRows || isIndeterminate;
// TODO core v5 remove || isIndeterminate, no longer has any effect
const isChecked = totalSelectedRows > 0 && totalSelectedRows === totalRows || isIndeterminate;

const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const checked = event.target.checked;
Expand Down

0 comments on commit a8f41dd

Please sign in to comment.