Skip to content

Commit

Permalink
Merge pull request #7828 from marmelab/7814-datagrid-expand
Browse files Browse the repository at this point in the history
Fix Datagrid with expand element expands ALL rows when used as a child of ArrayField
  • Loading branch information
fzaninotto authored Jun 15, 2022
2 parents 70a13b7 + 2a2341c commit 0e85bf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const DatagridBody: FC<DatagridBodyProps> = React.forwardRef(
expand,
hasBulkActions: hasBulkActions && !!selectedIds,
hover,
id: record.id,
id: record.id ?? `row${rowIndex}`,
key: record.id ?? `row${rowIndex}`,
onToggleItem,
record,
Expand Down

0 comments on commit 0e85bf1

Please sign in to comment.