Skip to content

Commit

Permalink
Update types when changed (olefirenko#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
morgant committed Sep 1, 2020
1 parent 3f1ac32 commit 1896ebf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/VueGoogleAutocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
this.autocomplete.setComponentRestrictions({
country: this.country === null ? [] : this.country
});
},
types: function(newVal, oldVal) {
this.autocomplete.setTypes([this.types]);
}
},
Expand Down

0 comments on commit 1896ebf

Please sign in to comment.