File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class TableBody extends Component {
16
16
this . state = {
17
17
currEditCell : null
18
18
} ;
19
- this . editing = false ;
20
19
}
21
20
22
21
render ( ) {
@@ -36,8 +35,7 @@ class TableBody extends Component {
36
35
const tableRows = this . props . data . map ( function ( data , r ) {
37
36
const tableColumns = this . props . columns . map ( function ( column , i ) {
38
37
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
41
39
column . editable && // column is editable? default is true, user can set it false
42
40
this . state . currEditCell !== null &&
43
41
this . state . currEditCell . rid === r &&
@@ -136,8 +134,6 @@ class TableBody extends Component {
136
134
) ;
137
135
}
138
136
139
- this . editing = false ;
140
-
141
137
return (
142
138
< div ref = 'container'
143
139
className = { classSet ( 'react-bs-container-body' , this . props . bodyContainerClass ) }
@@ -229,7 +225,6 @@ class TableBody extends Component {
229
225
}
230
226
231
227
handleEditCell = ( rowIndex , columnIndex , e ) => {
232
- this . editing = true ;
233
228
if ( this . _isSelectRowDefined ( ) ) {
234
229
columnIndex -- ;
235
230
if ( this . props . selectRow . hideSelectColumn ) columnIndex ++ ;
You can’t perform that action at this time.
0 commit comments