Skip to content

Commit

Permalink
fix #375
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Apr 1, 2016
1 parent 5da38c3 commit cf28f8f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,11 @@ class TableBody extends Component {
}
};

if (this.props.selectRow.clickToSelectAndEditCell) {
this.handleSelectRow(rowIndex + 1, true);
if (this.props.selectRow.clickToSelectAndEditCell &&
this.props.cellEdit.mode !== Const.CELL_EDIT_DBCLICK) {
const selected = this.props.selectedRowKeys.indexOf(
this.props.data[rowIndex][this.props.keyField]) !== -1;
this.handleSelectRow(rowIndex + 1, !selected);
}
this.setState(stateObj);
}
Expand Down

0 comments on commit cf28f8f

Please sign in to comment.