Skip to content

Commit 74e37d3

Browse files
committed
fix #1334
1 parent 2115389 commit 74e37d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/TableBody.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,13 @@ class TableBody extends Component {
314314
expandBy,
315315
expandableRow,
316316
selectRow: {
317-
clickToExpand
317+
clickToExpand,
318+
hideSelectColumn
318319
},
319320
onlyOneExpanding
320321
} = this.props;
321322
const selectRowAndExpand = this._isSelectRowDefined() && !clickToExpand ? false : true;
322-
columnIndex = this._isSelectRowDefined() ? columnIndex - 1 : columnIndex;
323+
columnIndex = this._isSelectRowDefined() && !hideSelectColumn ? columnIndex - 1 : columnIndex;
323324
columnIndex = this._isExpandColumnVisible() ? columnIndex - 1 : columnIndex;
324325
if (expandableRow &&
325326
selectRowAndExpand &&

0 commit comments

Comments
 (0)