Skip to content

Commit 84eb5b3

Browse files
committed
fix for some selects not closing. fixes select2#286
1 parent dc33939 commit 84eb5b3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

select2.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,6 @@
13321332
} else if (this.enabled) {
13331333
this.open();
13341334
}
1335-
killEvent(e);
13361335

13371336
clickingInside = false;
13381337
}));
@@ -1346,7 +1345,9 @@
13461345
}));
13471346

13481347
selection.bind("blur", this.bind(function() {
1349-
this.container.removeClass("select2-container-active");
1348+
if (!this.opened()) {
1349+
this.container.removeClass("select2-container-active");
1350+
}
13501351
window.setTimeout(this.bind(function() { this.search.attr("tabIndex", this.opts.element.attr("tabIndex")); }), 10);
13511352
}));
13521353

0 commit comments

Comments
 (0)