Skip to content

Commit

Permalink
Fixes #912
Browse files Browse the repository at this point in the history
  • Loading branch information
CAVY Benjamin (V) authored and CAVY Benjamin (V) committed Dec 27, 2016
1 parent ef26846 commit 86270e2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,24 @@ class TableRow extends Component {
if (e.target.tagName !== 'INPUT' &&
e.target.tagName !== 'SELECT' &&
e.target.tagName !== 'TEXTAREA') {
const rowIndex = e.currentTarget.rowIndex + 1;
const rowIndex = this.props.index;
if (this.props.onRowDoubleClick) {
this.props.onRowDoubleClick(rowIndex);
}
}
}

rowMouseOut = e => {
const rowIndex = this.props.index;
if (this.props.onRowMouseOut) {
this.props.onRowMouseOut(e.currentTarget.rowIndex, e);
this.props.onRowMouseOut(rowIndex, e);
}
}

rowMouseOver = e => {
const rowIndex = this.props.index;
if (this.props.onRowMouseOver) {
this.props.onRowMouseOver(e.currentTarget.rowIndex, e);
this.props.onRowMouseOver(rowIndex, e);
}
}

Expand Down

0 comments on commit 86270e2

Please sign in to comment.