This should be a bug. After selected a row in Table, clicking nearly wherever in the screen, the selected row get unselected. I think it is due to onRowSelection get called with empty array as the function parameter.
This seems a critical issue for the behaviour of a selectable table
Fairly strightforward. Go to doc website.
If you don't want that clicking outside the table causes deselection you can use/set deselectOnClickaway
prop on TableBody
. YOu have it documented on Material-UI website under TableBody Properties
.
ah, thank you very much @mario-jerkovic , I didn't notice it, will close this issue :smile: :sweat_smile:
Most helpful comment
If you don't want that clicking outside the table causes deselection you can use/set
deselectOnClickaway
prop onTableBody
. YOu have it documented on Material-UI website underTableBody Properties
.