Skip to content

Commit 6777a72

Browse files
committed
fix #724
1 parent 96c35aa commit 6777a72

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/TableBody.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class TableBody extends Component {
1616
this.state = {
1717
currEditCell: null
1818
};
19-
this.editing = false;
2019
}
2120

2221
render() {
@@ -36,8 +35,7 @@ class TableBody extends Component {
3635
const tableRows = this.props.data.map(function(data, r) {
3736
const tableColumns = this.props.columns.map(function(column, i) {
3837
const fieldValue = data[column.name];
39-
if (this.editing &&
40-
column.name !== this.props.keyField && // Key field can't be edit
38+
if (column.name !== this.props.keyField && // Key field can't be edit
4139
column.editable && // column is editable? default is true, user can set it false
4240
this.state.currEditCell !== null &&
4341
this.state.currEditCell.rid === r &&
@@ -136,8 +134,6 @@ class TableBody extends Component {
136134
);
137135
}
138136

139-
this.editing = false;
140-
141137
return (
142138
<div ref='container'
143139
className={ classSet('react-bs-container-body', this.props.bodyContainerClass) }
@@ -229,7 +225,6 @@ class TableBody extends Component {
229225
}
230226

231227
handleEditCell = (rowIndex, columnIndex, e) => {
232-
this.editing = true;
233228
if (this._isSelectRowDefined()) {
234229
columnIndex--;
235230
if (this.props.selectRow.hideSelectColumn) columnIndex++;

0 commit comments

Comments
 (0)