From 1101034bfae754eea94e87d4f2376c3b07e004f6 Mon Sep 17 00:00:00 2001 From: Bill Parrott Date: Wed, 30 Oct 2019 15:04:10 -0500 Subject: [PATCH] add rowKey to props passed into row selection cells to make it easier to access the row data --- .../react-bootstrap-table2/src/row-selection/selection-cell.js | 3 ++- .../test/row-selection/selection-cell.test.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/react-bootstrap-table2/src/row-selection/selection-cell.js b/packages/react-bootstrap-table2/src/row-selection/selection-cell.js index d7f8ec816..6cccd36bc 100644 --- a/packages/react-bootstrap-table2/src/row-selection/selection-cell.js +++ b/packages/react-bootstrap-table2/src/row-selection/selection-cell.js @@ -92,7 +92,8 @@ export default class SelectionCell extends Component { mode: inputType, checked: selected, disabled, - rowIndex + rowIndex, + rowKey }) : ( ', () => { mode, checked: selected, disabled: wrapper.prop('disabled'), - rowIndex + rowIndex, + rowKey: 1 }); }); });