Skip to content

Commit 0ba2565

Browse files
author
Tomas Kirda
authored
Merge pull request #767 from jrochkind/focus_respects_disabled
onFocus should respect disabled
2 parents 43b2953 + 1998491 commit 0ba2565

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/jquery.autocomplete.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@
219219
onFocus: function () {
220220
var that = this;
221221

222+
if (that.disabled) {
223+
return;
224+
}
225+
222226
that.fixPosition();
223227

224228
if (that.el.val().length >= that.options.minChars) {
@@ -270,7 +274,7 @@
270274
'z-index': options.zIndex
271275
});
272276

273-
this.options = options;
277+
this.options = options;
274278
},
275279

276280

0 commit comments

Comments
 (0)