Callback after Cancel Button
First of all I am new to react, so may be I am unable to figure out this by looking into document.
I am trying to do some action after user selects 'Cancel (X)' button during Add/Edit/Delete. I have added below code but this is getting called only after user selects Save
editable={{ onRowAdd: newData => new Promise(resolve => { setTimeout(() => { resolve(); const data = [...state.data]; data.push(newData); setState({ ...state, data }); }, 600); }), onRowUpdate: (newData, oldData) => new Promise(resolve => { setTimeout(() => { resolve(); const data = [...state.data]; data[data.indexOf(oldData)] = newData; setState({ ...state, data }); }, 600); }), onRowDelete: oldData => new Promise(resolve => { setTimeout(() => { resolve(); const data = [...state.data]; data.splice(data.indexOf(oldData), 1); setState({ ...state, data }); }, 600); }), }}
I have the same issue, is there any solution
Same here
Same issue, need on cancel callback and on add (+) free action callback, please let us know in case you find anything ..
up
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.