svelte-material-ui icon indicating copy to clipboard operation
svelte-material-ui copied to clipboard

DataTable checkbox throws error in console when deleting items from table. Functionality still seems to work however

Open jadhindieh opened this issue 2 years ago • 0 comments

Describe the bug Clicking on the checkbox to select all table's records and then proceeding to delete these records lead to an error 'Uncaught TypeError: Cannot read properties of undefined (reading 'checkbox')' Moreover, selecting few of the datatable rows and deleting them, will lead to this error as well when clicking on the datatable header checkbox.

To Reproduce Steps to reproduce the behavior:

  1. Go to data table with checkbox and delete rows functionality implemented
  2. Click on data table header checkbox
  3. delete the selected rows
  4. check the console
  5. See error

Expected behavior no error should be thrown

Screenshots Screenshot 2022-05-13 at 11 16 01

Desktop (please complete the following information):

  • OS: [MacOs]
  • Browser [chromium, brave]
  • Version [Version 1.38.115 Chromium: 101.0.4951.64 (arm64)]

jadhindieh avatar May 13 '22 09:05 jadhindieh