Open
Description
Hi,
I have copy-pasted the code and the autocomplete service seems to be working. But the funcion onPlaceSelected is not being executed. Could you please help me? This is the code I'm using:
<Autocomplete
style={{ width: "90%" }}
options = {{
types: ['point_of_interest'],
fields: ["name", "formatted_address", "geometry", "place_id"],
componentRestrictions: { country: "es" }
}}
onPlaceSelected={(place) => {
console.log(place);
}}
/>
Thanks!
Metadata
Metadata
Assignees
Labels
No labels