onRowDelete no longer provides row id
mosofsky opened this issue · 1 comments
mosofsky commented
I upgraded from "@material-table/core": "^0.2.34" to "@material-table/core": "^6.1.11" and suddenly onRowDelete stopped working as documented.
To Reproduce
- Go to https://material-table.com/#/docs/features/editable
- Add "@material-table/core": "^6.1.11" to your project
- Implement MaterialTable with onRowDelete as described
- Run the code
- Try to delete a row by clicking the garbage can icon for the row
- Observe crash because
oldData
does not contain a key named "tableData"
Expected behavior
Like in "@material-table/core": "^0.2.34", oldData
should have a key named "tableData" and that should contain a key named "id".
stale commented
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.