Skip to content
Discussion options

You must be logged in to vote

I updated the onChange method on the selected row as follows:

onChange: () => {
  const selected = row.getIsSelected(); // get selected status of current row.
  table.toggleAllRowsSelected(false); // deselect all.
  row.toggleSelected(!selected); // reverse selected status of current row.
}

Also, I extracted the radio input to its component to match the checkbox component provided in the examples section. Feel free to view the completed code example for reference.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@fdmmarshall
Comment options

@vholik
Comment options

Answer selected by Ref-Bit
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants