Open naveennsit opened 4 years ago
I am using material UI with react-final-form. I make two adapter text-field and Auto comlete using below link
material UI
react-final-form
text-field
Auto comlete
https://material-ui.com/components/autocomplete/#autocomplete
but my auto complete list is not display why ? instead of that it behaves like a text field why
text field
here is my code
https://codesandbox.io/s/react-final-form-third-party-components-example-bjqt6
const AutocompleteAdapter = ({ input, meta, ...rest }) => ( <Autocomplete multiple {...rest} id="tags-standard" options={[ { title: "The Shawshank Redemption", year: 1994 }, { title: "The Godfather", year: 1972 } ]} getOptionLabel={option => option.title} renderInput={params => ( <TextField {...params} {...input} variant="standard" label="Multiple values" placeholder="Favorites" onChange={(event, value) => input.onChange(value)} errorText={meta.touched ? meta.error : ""} fullWidth /> )} /> );
when I type on favourite an complete Auto complete example it does not display list instead of it behaves like a text field ? why
favourite
Auto complete
list
Does this idea solve your problem? https://stackoverflow.com/questions/59832331/why-checkbox-is-not-checked-in-react?noredirect=1#comment105801358_59832331
I am using
material UI
withreact-final-form
. I make two adaptertext-field
andAuto comlete
using below linkhttps://material-ui.com/components/autocomplete/#autocomplete
but my auto complete list is not display why ? instead of that it behaves like a
text field
whyhere is my code
https://codesandbox.io/s/react-final-form-third-party-components-example-bjqt6
when I type on
favourite
an completeAuto complete
example it does not displaylist
instead of it behaves like a text field ? why