From 275e094dff3cdd9038be5431f62bf8a3b21dbe1c Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Thu, 7 Feb 2013 16:16:26 -0800 Subject: [PATCH] fix infinite recursion on focus. fixes #816 --- select2.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/select2.js b/select2.js index e1a1efe8..aaf7a37a 100644 --- a/select2.js +++ b/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