Some consumers will need the rowProps passed into the table's rows prop passed back in the onSelect callback. This would be immediately useful if you need to know a system id or some other object identifier passed in for the row selected (rather than trying to convert simple rowIndex). Just opening this to target this issue specifically.
function selectClick(event) {
const selected = rowIndex === undefined ? event.target.checked : rowData && !rowData.selected;
onSelect && onSelect(event, selected, rowId); //rowData missing
}
Details:
#1250 (review)