2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-12-23 03:18:55 +00:00

When input receives focus trigger onValueChange only if minChars equals 0

This commit is contained in:
Tomas Kirda 2015-06-04 12:58:04 -05:00
parent 484c4c82fb
commit 94600795e7

View File

@ -209,7 +209,7 @@
onFocus: function () {
var that = this;
that.fixPosition();
if (that.options.minChars <= that.el.val().length) {
if (that.options.minChars === 0 && that.el.val().length === 0) {
that.onValueChange();
}
},