fix for some selects not closing. fixes #286
This commit is contained in:
parent
dc339391f8
commit
84eb5b33fc
@ -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);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user