File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -321,13 +321,20 @@ class TableBody extends Component {
321
321
}
322
322
323
323
handleEditCell = ( rowIndex , columnIndex , action , e ) => {
324
- if ( this . _isSelectRowDefined ( ) ) {
324
+ const defineSelectRow = this . _isSelectRowDefined ( ) ;
325
+ const expandColumnVisible = this . _isExpandColumnVisible ( ) ;
326
+ if ( defineSelectRow ) {
325
327
columnIndex -- ;
326
328
if ( this . props . selectRow . hideSelectColumn ) columnIndex ++ ;
327
329
}
330
+ if ( expandColumnVisible ) {
331
+ columnIndex -- ;
332
+ }
328
333
rowIndex -- ;
329
334
330
335
if ( action === 'tab' ) {
336
+ if ( defineSelectRow ) columnIndex ++ ;
337
+ if ( expandColumnVisible ) columnIndex ++ ;
331
338
this . handleCompleteEditCell ( e . target . value , rowIndex , columnIndex - 1 ) ;
332
339
if ( columnIndex >= this . props . columns . length ) {
333
340
rowIndex = rowIndex + 1 ;
You can’t perform that action at this time.
0 commit comments