Skip to content

Commit

Permalink
[docs] Improve EnhancedTable.tsx demo (#19266)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdgluck authored and oliviertassinari committed Jan 17, 2020
1 parent 985cc8b commit 020b746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/tables/EnhancedTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function EnhancedTableHead(props) {
<TableCell padding="checkbox">
<Checkbox
indeterminate={numSelected > 0 && numSelected < rowCount}
checked={numSelected === rowCount}
checked={rowCount > 0 && numSelected === rowCount}
onChange={onSelectAllClick}
inputProps={{ 'aria-label': 'select all desserts' }}
/>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/tables/EnhancedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function EnhancedTableHead(props: EnhancedTableProps) {
<TableCell padding="checkbox">
<Checkbox
indeterminate={numSelected > 0 && numSelected < rowCount}
checked={numSelected === rowCount}
checked={rowCount > 0 && numSelected === rowCount}
onChange={onSelectAllClick}
inputProps={{ 'aria-label': 'select all desserts' }}
/>
Expand Down

0 comments on commit 020b746

Please sign in to comment.