You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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!
The text was updated successfully, but these errors were encountered: