瀏覽代碼

jquery 1.4 compat impl of focus check

Igor Vaynberg 13 年之前
父節點
當前提交
bd8c40b0e8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1215,7 +1215,7 @@
         },
 
         isFocused: function () {
-            return this.search.is(":focus");
+            return this.search.hasClass("select2-focused");
         },
 
         updateSelection: function (data) {