diff --git a/dist/js/bootstrap-autocomplete.js b/dist/js/bootstrap-autocomplete.js index c53921a..4139ba3 100644 --- a/dist/js/bootstrap-autocomplete.js +++ b/dist/js/bootstrap-autocomplete.js @@ -455,6 +455,7 @@ if (!this._config.filter) return; if (this._dropdown.children.length >= this._config.maxResult) return; + if (this._query.length < this._config.filterMinChars) return; if (this._timer) clearTimeout(this._timer); var vval = this._query; this._timer = setTimeout(function () { diff --git a/docs/js/bootstrap-autocomplete.js b/docs/js/bootstrap-autocomplete.js index c53921a..4139ba3 100644 --- a/docs/js/bootstrap-autocomplete.js +++ b/docs/js/bootstrap-autocomplete.js @@ -455,6 +455,7 @@ if (!this._config.filter) return; if (this._dropdown.children.length >= this._config.maxResult) return; + if (this._query.length < this._config.filterMinChars) return; if (this._timer) clearTimeout(this._timer); var vval = this._query; this._timer = setTimeout(function () {