From 6c330eb53b695d8cf9f472d4e1df8f20357648db Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Thu, 19 Jul 2012 01:06:16 +0300 Subject: [PATCH] fixes IE8 bug where the dropdown wouldnt open. it would actually open and close immediately because the body would get a focusin event even after the focus was set on the search field by select2. worked fine in IE9 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index c15606f7..294d779c 100755 --- a/select2.js +++ b/select2.js @@ -382,7 +382,7 @@ * blurs any Select2 container that has focus when an element outside them was clicked or received focus */ $(document).ready(function () { - $(document).delegate("*", "mousedown focusin touchend", function (e) { + $(document).delegate("*", "mousedown touchend", function (e) { var target = $(e.target).closest("div.select2-container").get(0); if (target) { $(document).find("div.select2-container-active").each(function () {