Skip to content

Commit eff49cf

Browse files
committed
fix clicking on a custom selection column will trigger selection twice
1 parent 19ef7a6 commit eff49cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/TableRow.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class TableRow extends Component {
99
}
1010

1111
rowClick = e => {
12-
if (e.target.tagName !== 'INPUT' &&
13-
e.target.tagName !== 'SELECT' &&
14-
e.target.tagName !== 'TEXTAREA') {
12+
if (e.target.tagName === 'TD') {
1513
const rowIndex = this.props.index + 1;
1614
const cellIndex = e.target.cellIndex;
1715
const { selectRow, unselectableRow, isSelected, onSelectRow, onExpandRow } = this.props;

0 commit comments

Comments
 (0)