Browse Source

jquery 1.4 compat impl of focus check

Igor Vaynberg 13 years ago
parent
commit
bd8c40b0e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      select2.js

+ 1 - 1
select2.js

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