When adding the following params:
selected={selected}
onSelect={(selected) => setSelected(selected)}
We lose two features that are default when we don't override this:
-
Shift + Click: We lose the shift + click feature to select a group of cells. Shift clicking a end cell will just select it and deselect the old selection
-
Deselect on defocus: Whenever we click outside of the table the blue of the selected cells disappear. This is not the case when overriding onSelect. Would be awesome to have those features by default also in this case