1
0
mirror of synced 2024-11-30 00:26:03 +03:00

fix for some selects not closing. fixes #286

This commit is contained in:
Igor Vaynberg 2012-08-02 15:01:33 -07:00
parent dc339391f8
commit 84eb5b33fc

View File

@ -1332,7 +1332,6 @@
} else if (this.enabled) { } else if (this.enabled) {
this.open(); this.open();
} }
killEvent(e);
clickingInside = false; clickingInside = false;
})); }));
@ -1346,7 +1345,9 @@
})); }));
selection.bind("blur", this.bind(function() { selection.bind("blur", this.bind(function() {
this.container.removeClass("select2-container-active"); if (!this.opened()) {
this.container.removeClass("select2-container-active");
}
window.setTimeout(this.bind(function() { this.search.attr("tabIndex", this.opts.element.attr("tabIndex")); }), 10); window.setTimeout(this.bind(function() { this.search.attr("tabIndex", this.opts.element.attr("tabIndex")); }), 10);
})); }));