mbrn/material-table

onRowDelete no longer provides row id

mosofsky opened this issue · 1 comments

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

  1. Go to https://material-table.com/#/docs/features/editable
  2. Add "@material-table/core": "^6.1.11" to your project
  3. Implement MaterialTable with onRowDelete as described
  4. Run the code
  5. Try to delete a row by clicking the garbage can icon for the row
  6. 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.