Skip to content

Commit

Permalink
fix: wrong field used in example (#978)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arung-agamani committed Feb 6, 2024
1 parent 8386cdd commit 3d33091
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -124,7 +124,7 @@ const table = useMaterialReactTable({
data,
enableEditing: true,
editDisplayMode: 'modal', //default
onCreatingRowSave: ({ table, values }) => {
onEditingRowSave: ({ table, values }) => {
//validate data
//save data to api
table.setEditingRow(null); //exit editing mode
Expand Down

0 comments on commit 3d33091

Please sign in to comment.