1
0
mirror of synced 2024-11-26 14:56:07 +03:00

improve focus handling on mobiles. fixes #1344

This commit is contained in:
Igor Vaynberg 2013-05-28 12:32:36 -07:00
parent 87e62004f6
commit 6858742e16

View File

@ -2445,7 +2445,7 @@ the specific language governing permissions and limitations under the Apache Lic
this.opts.element.trigger($.Event("select2-blur"));
}));
this.container.on("mousedown", selector, this.bind(function (e) {
this.container.on("click", selector, this.bind(function (e) {
if (!this.isInterfaceEnabled()) return;
if ($(e.target).closest(".select2-search-choice").length > 0) {
// clicked inside a select2 search choice, do not open