Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't make the inputAutocompleteValue param work #228

Open
realestninja opened this issue Nov 30, 2023 · 0 comments
Open

I can't make the inputAutocompleteValue param work #228

realestninja opened this issue Nov 30, 2023 · 0 comments

Comments

@realestninja
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant