Skip to content

Commit 3d33091

Browse files
fix: wrong field used in example (#978)
Section explains on editing data but example used `onCreatingRowSave` as example. The previous passage that mentions `onEditingRowSave` points out that this is a small typo on the guide example.
1 parent 8386cdd commit 3d33091

File tree

1 file changed

+1
-1
lines changed
  • apps/material-react-table-docs/pages/docs/guides

1 file changed

+1
-1
lines changed

apps/material-react-table-docs/pages/docs/guides/editing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const table = useMaterialReactTable({
124124
data,
125125
enableEditing: true,
126126
editDisplayMode: 'modal', //default
127-
onCreatingRowSave: ({ table, values }) => {
127+
onEditingRowSave: ({ table, values }) => {
128128
//validate data
129129
//save data to api
130130
table.setEditingRow(null); //exit editing mode

0 commit comments

Comments
 (0)