From 1896ebfbd9c886488c3d50ae35bf7c60fa9ee9f3 Mon Sep 17 00:00:00 2001 From: Morgan Aldridge Date: Tue, 1 Sep 2020 11:42:19 -0400 Subject: [PATCH] Update types when changed (#144) --- src/VueGoogleAutocomplete.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/VueGoogleAutocomplete.vue b/src/VueGoogleAutocomplete.vue index bd4dde8..a413ebf 100644 --- a/src/VueGoogleAutocomplete.vue +++ b/src/VueGoogleAutocomplete.vue @@ -116,6 +116,9 @@ this.autocomplete.setComponentRestrictions({ country: this.country === null ? [] : this.country }); + }, + types: function(newVal, oldVal) { + this.autocomplete.setTypes([this.types]); } },