From 19984912047786729de5ca4884d7339602629107 Mon Sep 17 00:00:00 2001 From: Jonathan Rochkind Date: Wed, 28 Aug 2019 16:20:32 -0400 Subject: [PATCH] onFocus should respect disabled Fixes #766 --- src/jquery.autocomplete.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index b587c18..31658c8 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -219,6 +219,10 @@ onFocus: function () { var that = this; + if (that.disabled) { + return; + } + that.fixPosition(); if (that.el.val().length >= that.options.minChars) { @@ -270,7 +274,7 @@ 'z-index': options.zIndex }); - this.options = options; + this.options = options; },