keep focus in control when the mask is clicked
This commit is contained in:
parent
4094c1c7de
commit
882e7996f4
@ -1224,6 +1224,8 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
self.selectHighlighted({noFocus: true});
|
||||
}
|
||||
self.close();
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -1884,6 +1886,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
})).bind("blur", this.bind(function() {
|
||||
if (!this.opened()) {
|
||||
this.container.removeClass("select2-container-active");
|
||||
this.opts.element.trigger($.Event("select2-blur"));
|
||||
}
|
||||
}));
|
||||
this.search.bind("focus", this.bind(function(){
|
||||
@ -2382,6 +2385,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
this.selectChoice(null);
|
||||
if (!this.opened()) this.clearSearch();
|
||||
e.stopImmediatePropagation();
|
||||
this.opts.element.trigger($.Event("select2-blur"));
|
||||
}));
|
||||
|
||||
this.container.delegate(selector, "mousedown", this.bind(function (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user