File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ export class RemoteSelectField extends Component {
179
179
preSearchChange,
180
180
onValueChange,
181
181
search,
182
+ isFocused,
182
183
...uiProps
183
184
} = this . props ;
184
185
const compProps = {
@@ -197,6 +198,7 @@ export class RemoteSelectField extends Component {
197
198
preSearchChange,
198
199
onValueChange,
199
200
search,
201
+ isFocused,
200
202
} ;
201
203
return { compProps, uiProps } ;
202
204
} ;
@@ -214,6 +216,7 @@ export class RemoteSelectField extends Component {
214
216
search = { compProps . search }
215
217
searchInput = { {
216
218
id : compProps . fieldPath ,
219
+ autoFocus : compProps . isFocused ,
217
220
} }
218
221
lazyLoad
219
222
open = { open }
@@ -270,6 +273,7 @@ RemoteSelectField.propTypes = {
270
273
onValueChange : PropTypes . func , // Takes the SUI hanf and updated selectedSuggestions
271
274
search : PropTypes . oneOfType ( [ PropTypes . bool , PropTypes . func ] ) ,
272
275
multiple : PropTypes . bool ,
276
+ isFocused : PropTypes . bool ,
273
277
} ;
274
278
275
279
RemoteSelectField . defaultProps = {
@@ -287,4 +291,5 @@ RemoteSelectField.defaultProps = {
287
291
serializeAddedValue : undefined ,
288
292
initialSuggestions : [ ] ,
289
293
onValueChange : undefined ,
294
+ isFocused : false ,
290
295
} ;
You can’t perform that action at this time.
0 commit comments