Skip to content

Add rowKey to selection cell renderer #1358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2020

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