Skip to content

Commit

Permalink
fix #1505
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Jul 29, 2017
1 parent f9c10ed commit e4a8d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,13 +773,13 @@ class BootstrapTable extends Component {
});
}

handleSelectRow = (row, isSelected, e) => {
handleSelectRow = (row, isSelected, e, rowIndex) => {
let result = true;
let currSelected = this.store.getSelectedRowKeys();
const rowKey = row[ this.store.getKeyField() ];
const { selectRow } = this.props;
if (selectRow.onSelect) {
result = selectRow.onSelect(row, isSelected, e);
result = selectRow.onSelect(row, isSelected, e, rowIndex);
}

if (typeof result === 'undefined' || result !== false) {
Expand Down
2 changes: 1 addition & 1 deletion src/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class TableBody extends Component {
return false;
}
});
onSelectRow(selectedRow, isSelected, e);
onSelectRow(selectedRow, isSelected, e, rowIndex - 1);
}

handleSelectRowColumChange = (e, rowIndex) => {
Expand Down

0 comments on commit e4a8d0b

Please sign in to comment.