|
@@ -1865,8 +1865,11 @@
|
|
|
|
|
|
this.search.bind("keyup", this.bind(this.resizeSearch));
|
|
this.search.bind("keyup", this.bind(this.resizeSearch));
|
|
|
|
|
|
- this.search.bind("blur", this.bind(function() {
|
|
|
|
|
|
+ this.search.bind("blur", this.bind(function(e) {
|
|
this.container.removeClass("select2-container-active");
|
|
this.container.removeClass("select2-container-active");
|
|
|
|
+ this.search.removeClass("select2-focused");
|
|
|
|
+ this.clearSearch();
|
|
|
|
+ e.stopImmediatePropagation();
|
|
}));
|
|
}));
|
|
|
|
|
|
this.container.delegate(selector, "mousedown", this.bind(function (e) {
|
|
this.container.delegate(selector, "mousedown", this.bind(function (e) {
|