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

onFocus should respect disabled

Fixes #766
This commit is contained in:
Jonathan Rochkind 2019-08-28 16:20:32 -04:00
parent 43b2953ab7
commit 1998491204

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) {
@ -270,7 +274,7 @@
'z-index': options.zIndex 'z-index': options.zIndex
}); });
this.options = options; this.options = options;
}, },