Skip to content

Commit 2e850b9

Browse files
committed
Revert "fix(Components): 🐛 Fix the issue with the previously entered input value in the form values will not show up on the form load."
This reverts commit d2ae899.
1 parent d2ae899 commit 2e850b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ 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 {...rest}>
19-
{({ getInputProps, getRef, openMenu }) => (
18+
<Autocomplete {...input} items={items || []} allowOtherValues>
19+
{({ getInputProps, getRef, inputValue, openMenu }) => (
2020
<TextInputField
2121
ref={getRef}
2222
required={isRequired}
2323
isInvalid={Boolean(meta.error)}
2424
validationMessage={meta.error}
2525
{...getInputProps({ onFocus: () => openMenu() })}
26-
value={input.value}
26+
value={inputValue}
2727
{...rest}
2828
/>
2929
)}

0 commit comments

Comments
 (0)