Skip to content

Commit 6c330eb

Browse files
committed
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
1 parent 633a6dc commit 6c330eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
* blurs any Select2 container that has focus when an element outside them was clicked or received focus
383383
*/
384384
$(document).ready(function () {
385-
$(document).delegate("*", "mousedown focusin touchend", function (e) {
385+
$(document).delegate("*", "mousedown touchend", function (e) {
386386
var target = $(e.target).closest("div.select2-container").get(0);
387387
if (target) {
388388
$(document).find("div.select2-container-active").each(function () {

0 commit comments

Comments
 (0)