We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 042c5ee commit eeeb3ccCopy full SHA for eeeb3cc
lib/index.js
@@ -939,10 +939,9 @@ MapboxGeocoder.prototype = {
939
this._inputEl.value = searchInput;
940
this._typeahead.selected = null;
941
this._typeahead.clear();
942
- if (showSuggestions && searchInput.length >= this.options.minLength) {
943
- this._geocode(searchInput);
944
- } else if (!showSuggestions) {
945
- this._onChange();
+ if (searchInput.length >= this.options.minLength) {
+ showSuggestions ? this._geocode(searchInput) : this._onChange();
+ }
946
}
947
return this;
948
},
0 commit comments