We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b6a3a2 commit f1191fbCopy full SHA for f1191fb
src/material-table.js
@@ -685,11 +685,11 @@ export default class MaterialTable extends React.Component {
685
onEditingCanceled = (mode, rowData) => {
686
if (mode === 'add') {
687
this.props.editable.onRowAddCancelled &&
688
- this.props.editable.onRowAddCancelled();
+ this.props.editable.onRowAddCancelled(rowData);
689
this.setState({ showAddRow: false });
690
} else if (mode === 'update') {
691
this.props.editable.onRowUpdateCancelled &&
692
- this.props.editable.onRowUpdateCancelled();
+ this.props.editable.onRowUpdateCancelled(rowData);
693
this.dataManager.changeRowEditing(rowData);
694
this.setState(this.dataManager.getRenderState());
695
} else if (mode === 'delete') {
0 commit comments