Skip to content

Commit 3ba3e57

Browse files
committed
issue select2#77, blur on touchend - seems more native
1 parent 5e18e71 commit 3ba3e57

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
@@ -317,7 +317,7 @@
317317
* blurs any Select2 container that has focus when an element outside them was clicked or received focus
318318
*/
319319
$(document).ready(function () {
320-
$(document).delegate("*", "mousedown focusin touchstart", function (e) {
320+
$(document).delegate("*", "mousedown focusin touchend", function (e) {
321321
var target = $(e.target).closest("div.select2-container").get(0);
322322
$(document).find("div.select2-container-active").each(function () {
323323
if (this !== target) $(this).data("select2").blur();

0 commit comments

Comments
 (0)