From 4c08dbdd8a91db397be17f5b02c8e3f4447f236b Mon Sep 17 00:00:00 2001 From: Michael Kimsal Date: Sat, 28 Dec 2019 14:47:31 -0500 Subject: [PATCH] fix: stop updateInput squishing results the input kept having all spaces removed whenever results were returned. --- src/GeocoderControl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GeocoderControl.js b/src/GeocoderControl.js index b68ac0c6..9d37cacf 100644 --- a/src/GeocoderControl.js +++ b/src/GeocoderControl.js @@ -143,7 +143,7 @@ export default { $_updateInput(results) { if (!this.initial) { - const input = results.query ? results.query.join("") : ""; + const input = results.query ? results.query.join(" ") : " "; this.$emit("update:input", input); } }, @@ -151,7 +151,7 @@ export default { query(query) { if (this.control) { this.$emit("update:input", query); - return this.contol.query(query); + return this.control.query(query); } return null; }