1
0
mirror of synced 2025-02-11 01:29:23 +03:00

fix infinite recursion on focus. fixes #816

This commit is contained in:
Igor Vaynberg 2013-02-07 16:16:26 -08:00
parent b11a733ad8
commit 275e094dff

View File

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