olefirenko / vue-google-autocomplete

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

Subsequence emits Placechanged and InputChange #198

Open upsmod opened 1 year ago

upsmod commented 1 year ago

https://github.com/olefirenko/vue-google-autocomplete/blob/184a6189a33e4883f08e48ed67b29cefe8e182fa/src/VueGoogleAutocomplete.vue#L185C21-L185C21

Need to change subsequence of emits event Right now is:

Right logic is

Look at there: If some body wants to validate input of autocomplete - he wants to have a point to get a value of vuegoogleautocomplete that can make with @inputChange - to have fixed a valid selected data from autocomplete (not typed) wee need to use placechanged from your Readme.md. But on the moment exec the placechanged event we don't have a valid data input from selected result - because that inputChange was fired after placechanged. @olefirenko can you some suggest with that?