File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -39,22 +39,24 @@ class TableRow extends Component {
39
39
if ( e . target . tagName !== 'INPUT' &&
40
40
e . target . tagName !== 'SELECT' &&
41
41
e . target . tagName !== 'TEXTAREA' ) {
42
- const rowIndex = e . currentTarget . rowIndex + 1 ;
42
+ const rowIndex = this . props . index ;
43
43
if ( this . props . onRowDoubleClick ) {
44
44
this . props . onRowDoubleClick ( rowIndex ) ;
45
45
}
46
46
}
47
47
}
48
48
49
49
rowMouseOut = e => {
50
+ const rowIndex = this . props . index ;
50
51
if ( this . props . onRowMouseOut ) {
51
- this . props . onRowMouseOut ( e . currentTarget . rowIndex , e ) ;
52
+ this . props . onRowMouseOut ( rowIndex , e ) ;
52
53
}
53
54
}
54
55
55
56
rowMouseOver = e => {
57
+ const rowIndex = this . props . index ;
56
58
if ( this . props . onRowMouseOver ) {
57
- this . props . onRowMouseOver ( e . currentTarget . rowIndex , e ) ;
59
+ this . props . onRowMouseOver ( rowIndex , e ) ;
58
60
}
59
61
}
60
62
You can’t perform that action at this time.
0 commit comments