Selaa lähdekoodia

fix infinite recursion on focus. fixes #816

Igor Vaynberg 12 vuotta sitten
vanhempi
commit
275e094dff
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 2
      select2.js

+ 0 - 2
select2.js

@@ -1359,7 +1359,6 @@ the specific language governing permissions and limitations under the Apache Lic
             if (this.search[0] === document.activeElement) { this.search.blur(); }
             this.clearSearch();
             this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
-            this.opts.element.triggerHandler("blur");
         },
 
         // abstract
@@ -1524,7 +1523,6 @@ the specific language governing permissions and limitations under the Apache Lic
         focus: function () {
             this.close();
             this.selection.focus();
-            this.opts.element.triggerHandler("focus");
         },
 
         // single