Skip to content

Commit

Permalink
docs: Use group focusMode for cells (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
ling1726 authored Apr 9, 2024
1 parent 0ac8342 commit 494d9aa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ const columns: TableColumnDefinition<Item>[] = [

const renderRow: RowRenderer<Item> = ({ item, rowId }, style) => (
<DataGridRow<Item> key={rowId} style={style}>
{({ renderCell }) => <DataGridCell>{renderCell(item)}</DataGridCell>}
{({ renderCell }) => (
<DataGridCell focusMode="group">{renderCell(item)}</DataGridCell>
)}
</DataGridRow>
);

Expand Down

0 comments on commit 494d9aa

Please sign in to comment.