olefirenko / vue-google-autocomplete

A Vue.js autosuggest component for the Google Places API.
https://olefirenko.github.io/vue-google-autocomplete/
MIT License
507 stars 258 forks source link

placechanged strange behavior #135

Closed richardfeliciano closed 4 years ago

richardfeliciano commented 4 years ago

Dude i followed the docs, but it look like something are not working well. the placechanged event not working when user select the place, instead its been called when user loads the page.

id="origin" classname="field-gray has-icon" placeholder="Origem" types="geocode" country="br" v-on:placechanged="getFromAddress"

getFromAddress(from_address, placeResultData, id) { console.log(placeResultData, 1); // this.from_address = from_address; // console.log(from_address); } And i got this when user loads the page:

undefined 1