Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
michelengelen committed Sep 6, 2024
1 parent 06ada5c commit 25c7287
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/data/data-grid/editing/FullFeaturedCrudGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ function EditToolbar(props) {

const handleClick = () => {
const id = randomId();
setRows((oldRows) => [...oldRows, { id, name: '', age: '', isNew: true }]);
setRows((oldRows) => [
...oldRows,
{ id, name: '', age: '', role: '', isNew: true },
]);
setRowModesModel((oldModel) => ({
...oldModel,
[id]: { mode: GridRowModes.Edit, fieldToFocus: 'name' },
Expand Down

0 comments on commit 25c7287

Please sign in to comment.