Skip to content

Commit 9460079

Browse files
author
Tomas Kirda
committed
When input receives focus trigger onValueChange only if minChars equals 0
1 parent 484c4c8 commit 9460079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
onFocus: function () {
210210
var that = this;
211211
that.fixPosition();
212-
if (that.options.minChars <= that.el.val().length) {
212+
if (that.options.minChars === 0 && that.el.val().length === 0) {
213213
that.onValueChange();
214214
}
215215
},

0 commit comments

Comments
 (0)