Skip to content

Commit 312ceed

Browse files
committed
fix(Components): Fix the issue with the TextField component not showing the value loaded from the form.
1 parent 2e850b9 commit 312ceed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/evergreen-component-mapper/src/text-field/text-field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const TextField: React.FC<TextFieldProps> = (props) => {
1515
const { input, meta, isRequired, items, ...rest } = useFieldApi(props) as TextFieldProps;
1616

1717
return (
18-
<Autocomplete {...input} items={items || []} allowOtherValues>
18+
<Autocomplete {...input} items={items || []} allowOtherValues selectedItem={input.value}>
1919
{({ getInputProps, getRef, inputValue, openMenu }) => (
2020
<TextInputField
2121
ref={getRef}

0 commit comments

Comments
 (0)