Skip to content

onPlaceSelected not being executed #229

Open
@loixiyo

Description

@loixiyo

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions