I can't make the `inputAutocompleteValue` param work
realestninja opened this issue · 0 comments
realestninja commented
Hello, I would like to format the place that has been chosen before it is then used as a value for the input.
I have this "hello world"-test but it doesn't seem to work.
<Autocomplete
apiKey={GOOGLE_MAPS_API_KEY}
onPlaceSelected={place => callback(place)}
placeholder={placeholder}
language="de"
options={{
types: ["(regions)"],
componentRestrictions: { country: "de" },
}}
autoFocus
inputAutocompleteValue="hello world"
/>
So in theory, after choosing a city, the input value should be changed to "hello world", no?