svelte-material-ui
svelte-material-ui copied to clipboard
DataTable checkbox throws error in console when deleting items from table. Functionality still seems to work however
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:
- Go to data table with checkbox and delete rows functionality implemented
- Click on data table header checkbox
- delete the selected rows
- check the console
- See error
Expected behavior no error should be thrown
Screenshots
Desktop (please complete the following information):
- OS: [MacOs]
- Browser [chromium, brave]
- Version [Version 1.38.115 Chromium: 101.0.4951.64 (arm64)]