Skip to content

Commit 3f5dd32

Browse files
committed
Removing focus on selected cell
1 parent 61d5af7 commit 3f5dd32

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/TableBody.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -469,23 +469,11 @@ class TableBody extends Component {
469469
this.setState(() => { return { currEditCell: null }; });
470470
}
471471

472-
handleClickonSelectColumn = (e, isSelect, rowIndex, row) => {
473-
e.stopPropagation();
474-
if (e.target.tagName === 'TD' &&
475-
(this.props.selectRow.clickToSelect || this.props.selectRow.clickToSelectAndEditCell)) {
476-
const unselectable = this.props.selectRow.unselectable || [];
477-
if (unselectable.indexOf(row[this.props.keyField]) === -1) {
478-
this.handleSelectRow(rowIndex + 1, isSelect, e);
479-
this.handleClickCell(e, rowIndex + 1);
480-
}
481-
}
482-
}
483-
484472
renderSelectRowColumn(selected, inputType, disabled,
485-
CustomComponent = null, rowIndex = null, row) {
473+
CustomComponent = null, rowIndex = null) {
486474
return (
487475
<td onClick={ e => {
488-
this.handleClickonSelectColumn(e, !selected, rowIndex, row);
476+
this.handleSelectRowColumChange(e, rowIndex);
489477
} } style={ { textAlign: 'center' } }>
490478
{ CustomComponent ?
491479
<CustomComponent type={ inputType } checked={ selected } disabled={ disabled }

src/TableColumn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class TableColumn extends Component {
148148
...cusmtStyle
149149
};
150150
} else {
151-
className = `${className} default-focus-cell`;
151+
className = `${className}`;
152152
}
153153
}
154154

0 commit comments

Comments
 (0)