mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Read selected place value from place object
This commit is contained in:
parent
815e1acb8c
commit
74f62bc101
1 changed files with 2 additions and 2 deletions
|
|
@ -253,7 +253,7 @@ class LocationAutocompleteInputImpl extends Component {
|
|||
});
|
||||
}
|
||||
|
||||
// Select the prediction in the given item. This will fetch the
|
||||
// Select the prediction in the given item. This will fetch/read the
|
||||
// place details and set it as the selected place.
|
||||
selectItem(index) {
|
||||
if (index < 0) {
|
||||
|
|
@ -274,7 +274,7 @@ class LocationAutocompleteInputImpl extends Component {
|
|||
.getPlaceDetails(prediction)
|
||||
.then(place => {
|
||||
this.props.input.onChange({
|
||||
search: prediction.description,
|
||||
search: place.address,
|
||||
predictions: [],
|
||||
selectedPlace: place,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue