Skip to content

Add rowKey to selection cell renderer#1358

Merged
AllenFang merged 1 commit intoreact-bootstrap-table:developfrom
chimericdream:develop
May 17, 2020
Merged

Add rowKey to selection cell renderer#1358
AllenFang merged 1 commit intoreact-bootstrap-table:developfrom
chimericdream:develop

Conversation

@chimericdream
Copy link
Contributor

Re-opening #1139 to correct the branches.

Original PR text:

I was writing a custom renderer for the selection cell in order to add a label to the input for screen readers. But I realized that the rowIndex being passed in cannot reliably be used to get the row data, since filtering and sorting affect it.

This change merely adds the rowKey as an additional param to custom selectionRenderer functions.

@AllenFang AllenFang merged commit 4f88591 into react-bootstrap-table:develop May 17, 2020
@AllenFang
Copy link
Member

release to newest version done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants