Giners / mui-places-autocomplete

Google Material Design (Material-UI) styled React component using Google Maps Places Autocomplete
MIT License
34 stars 26 forks source link

Feature: Callback when suggestion selected #17

Closed Giners closed 6 years ago

Giners commented 6 years ago

The <MUIPlacesAutocomplete> component ought to provide a callback for when a suggestion is selected. This is important functionality that is missing as without it consumers have to modify/hack the <MUIPlacesAutocomplete> component themselves to figure out which suggestion was selected. I guess we shouldn't have released without this functionality and this was an oversight of mine.

This callback ought to be passed as a prop to the <MUIPlacesAutocomplete> component.