Skip to content

Commit 1cb7dbd

Browse files
author
Tony Baeg
committed
fixed onrowclick bug
1 parent 9ff999e commit 1cb7dbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TableRow.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import Const from './Const';
44
class TableRow extends React.Component{
55

66
rowClick(e){
7-
if(e.target.tagName !== "INPUT")
8-
if (this.props.selectRow &&
9-
this.props.selectRow.clickToSelect) this.props.onSelectRow(e.currentTarget.rowIndex, !this.props.isSelected);
7+
if(e.target.tagName !== "INPUT") {
8+
if (this.props.selectRow && this.props.selectRow.clickToSelect) this.props.onSelectRow(e.currentTarget.rowIndex, !this.props.isSelected);
109
if (this.props.onRowClick) this.props.onRowClick(e.currentTarget.rowIndex);
10+
}
1111
}
1212

1313
render(){

0 commit comments

Comments
 (0)