Skip to content

Commit e8c25fd

Browse files
committed
fix #1150
1 parent 869bf07 commit e8c25fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/TableBody.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -326,19 +326,20 @@ class TableBody extends Component {
326326
}
327327

328328
handleEditCell = (rowIndex, columnIndex, action, e) => {
329+
const { selectRow } = this.props;
329330
const defineSelectRow = this._isSelectRowDefined();
330331
const expandColumnVisible = this._isExpandColumnVisible();
331332
if (defineSelectRow) {
332333
columnIndex--;
333-
if (this.props.selectRow.hideSelectColumn) columnIndex++;
334+
if (selectRow.hideSelectColumn) columnIndex++;
334335
}
335336
if (expandColumnVisible) {
336337
columnIndex--;
337338
}
338339
rowIndex--;
339340

340341
if (action === 'tab') {
341-
if (defineSelectRow) columnIndex++;
342+
if (defineSelectRow && !selectRow.hideSelectColumn) columnIndex++;
342343
if (expandColumnVisible) columnIndex++;
343344
this.handleCompleteEditCell(e.target.value, rowIndex, columnIndex - 1);
344345
if (columnIndex >= this.props.columns.length) {

0 commit comments

Comments
 (0)