scaffolder: add support for ui:autofocus to TextValuePicker
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
@@ -23,6 +23,7 @@ export const TextValuePicker = ({
|
||||
schema: { title, description },
|
||||
rawErrors,
|
||||
formData,
|
||||
uiSchema: { 'ui:autofocus': autoFocus },
|
||||
}: FieldProps<string>) => (
|
||||
<TextField
|
||||
label={title}
|
||||
@@ -32,5 +33,6 @@ export const TextValuePicker = ({
|
||||
onChange={({ target: { value } }) => onChange(value)}
|
||||
margin="normal"
|
||||
error={rawErrors?.length > 0 && !formData}
|
||||
inputProps={{ autoFocus }}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user