Skip to content

Commit 6858742

Browse files
committed
improve focus handling on mobiles. fixes select2#1344
1 parent 87e6200 commit 6858742

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2445,7 +2445,7 @@ the specific language governing permissions and limitations under the Apache Lic
24452445
this.opts.element.trigger($.Event("select2-blur"));
24462446
}));
24472447

2448-
this.container.on("mousedown", selector, this.bind(function (e) {
2448+
this.container.on("click", selector, this.bind(function (e) {
24492449
if (!this.isInterfaceEnabled()) return;
24502450
if ($(e.target).closest(".select2-search-choice").length > 0) {
24512451
// clicked inside a select2 search choice, do not open

0 commit comments

Comments
 (0)