Skip to content

Commit 787bafa

Browse files
fix: update build
1 parent d748481 commit 787bafa

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/vue-mapbox-geocoder.common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,8 +1532,8 @@ var geocoderEvents = {
15321532
},
15331533
watch: {
15341534
input: {
1535-
handler: function handler(next) {
1536-
if (this.control && next) {
1535+
handler: function handler(next, prev) {
1536+
if (this.control && next !== prev) {
15371537
this.control.setInput(next);
15381538
}
15391539
},

dist/vue-mapbox-geocoder.umd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,8 +1541,8 @@ var geocoderEvents = {
15411541
},
15421542
watch: {
15431543
input: {
1544-
handler: function handler(next) {
1545-
if (this.control && next) {
1544+
handler: function handler(next, prev) {
1545+
if (this.control && next !== prev) {
15461546
this.control.setInput(next);
15471547
}
15481548
},

0 commit comments

Comments
 (0)