Skip to content

Table - selection callback requires rowProps #1472

@priley86

Description

@priley86

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions