diff --git a/src/VueGoogleAutocomplete.vue b/src/VueGoogleAutocomplete.vue index fad7e6d..18352f6 100644 --- a/src/VueGoogleAutocomplete.vue +++ b/src/VueGoogleAutocomplete.vue @@ -173,7 +173,7 @@ onPlaceChanged() { let place = this.autocomplete.getPlace(); - if (!place.geometry) { + if (!place || !place.geometry) { // User entered the name of a Place that was not suggested and // pressed the Enter key, or the Place Details request failed. this.$emit('no-results-found', place, this.id); @@ -202,6 +202,7 @@ * When the input loses focus */ onBlur() { + google.maps.event.trigger(this.autocomplete, 'place_changed'); this.$emit('blur'); },