We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7320dd4 commit 93c7efbCopy full SHA for 93c7efb
src/TableBody.js
@@ -257,8 +257,9 @@ class TableBody extends Component {
257
258
handleRowClick = (rowIndex, cellIndex) => {
259
const { onRowClick } = this.props;
260
- onRowClick(this.props.data[rowIndex - 1],
261
- rowIndex - 1, this._isSelectRowDefined() ? cellIndex - 1 : cellIndex);
+ if (this._isSelectRowDefined()) cellIndex--;
+ if (this._isExpandColumnVisible()) cellIndex--;
262
+ onRowClick(this.props.data[rowIndex - 1], rowIndex - 1, cellIndex);
263
}
264
265
handleRowDoubleClick = rowIndex => {
0 commit comments