Skip to content

Commit cf28f8f

Browse files
committed
fix #375
1 parent 5da38c3 commit cf28f8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/TableBody.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,11 @@ class TableBody extends Component {
227227
}
228228
};
229229

230-
if (this.props.selectRow.clickToSelectAndEditCell) {
231-
this.handleSelectRow(rowIndex + 1, true);
230+
if (this.props.selectRow.clickToSelectAndEditCell &&
231+
this.props.cellEdit.mode !== Const.CELL_EDIT_DBCLICK) {
232+
const selected = this.props.selectedRowKeys.indexOf(
233+
this.props.data[rowIndex][this.props.keyField]) !== -1;
234+
this.handleSelectRow(rowIndex + 1, !selected);
232235
}
233236
this.setState(stateObj);
234237
}

0 commit comments

Comments
 (0)