Skip to content

Commit b8fa9ed

Browse files
chore: remove the _updateInput method causing debounce issue
1 parent 787bafa commit b8fa9ed

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/GeocoderControl.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,10 @@ export default {
120120
this.mapbox.accessToken = this.accessToken;
121121
}
122122
this.control = new MapboxGeocoder(this.$props);
123-
this.control.on("results", this.$_updateInput);
124123

125124
this.$_deferredMount();
126125
},
127126

128-
beforeDestroy() {
129-
this.control.off("results", this.$_updateInput);
130-
},
131-
132127
methods: {
133128
$_deferredMount() {
134129
this.map.addControl(this.control, this.position);
@@ -153,13 +148,6 @@ export default {
153148
return this.$_emitSelfEvent({ type: eventName }, eventData);
154149
},
155150

156-
$_updateInput(results) {
157-
if (!this.initial) {
158-
const input = results.query ? results.query.join(" ") : "";
159-
this.$emit("update:input", input);
160-
}
161-
},
162-
163151
query(query) {
164152
if (this.control) {
165153
this.$emit("update:input", query);

0 commit comments

Comments
 (0)