File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class SketchListRowBase extends React.Component {
29
29
renameValue : props . sketch . name ,
30
30
isFocused : false
31
31
} ;
32
+ this . renameInput = React . createRef ( ) ;
32
33
}
33
34
onFocusComponent = ( ) => {
34
35
this . setState ( { isFocused : true } ) ;
@@ -66,7 +67,7 @@ class SketchListRowBase extends React.Component {
66
67
openRename = ( ) => {
67
68
this . setState ( {
68
69
renameOpen : true
69
- } ) ;
70
+ } , ( ) => this . renameInput . current . focus ( ) ) ;
70
71
}
71
72
72
73
closeRename = ( ) => {
@@ -158,6 +159,7 @@ class SketchListRowBase extends React.Component {
158
159
onKeyUp = { this . handleRenameEnter }
159
160
onBlur = { this . resetSketchName }
160
161
onClick = { e => e . stopPropagation ( ) }
162
+ ref = { this . renameInput }
161
163
/>
162
164
}
163
165
</ th >
You can’t perform that action at this time.
0 commit comments