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