2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-09-19 16:59:01 +00:00

Merge pull request #767 from jrochkind/focus_respects_disabled

onFocus should respect disabled
This commit is contained in:
Tomas Kirda 2019-08-29 10:06:43 -05:00 committed by GitHub
commit 0ba256501b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,6 +219,10 @@
onFocus: function () { onFocus: function () {
var that = this; var that = this;
if (that.disabled) {
return;
}
that.fixPosition(); that.fixPosition();
if (that.el.val().length >= that.options.minChars) { if (that.el.val().length >= that.options.minChars) {