2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-09 14:50:57 +00:00

Show autocomplete when input gets focus, fixes #319, #391

Triggers autocomplete lookup if value is greater than minChars.
This commit is contained in:
Tomas Kirda 2015-11-01 19:16:18 -06:00
parent dfbca90052
commit fef68b6e4c

View File

@ -208,8 +208,10 @@
onFocus: function () {
var that = this;
that.fixPosition();
if (that.options.minChars === 0 && that.el.val().length === 0) {
if (that.el.val().length >= that.options.minChars) {
that.onValueChange();
}
},