Skip to content

Commit

Permalink
Merge pull request #27 from dshk0718/main
Browse files Browse the repository at this point in the history
fix(Components): Fix the issue with the `TextField` component not showing the value loaded from the form.
  • Loading branch information
rvsia authored Jun 27, 2024
2 parents 72e008f + 312ceed commit ef920a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const TextField: React.FC<TextFieldProps> = (props) => {
const { input, meta, isRequired, items, ...rest } = useFieldApi(props) as TextFieldProps;

return (
<Autocomplete {...input} items={items || []} allowOtherValues>
<Autocomplete {...input} items={items || []} allowOtherValues selectedItem={input.value}>
{({ getInputProps, getRef, inputValue, openMenu }) => (
<TextInputField
ref={getRef}
Expand Down

0 comments on commit ef920a5

Please sign in to comment.