From 534bbff06ff46bd21d71700c833486524273c951 Mon Sep 17 00:00:00 2001 From: Hung Dao Date: Thu, 3 Apr 2014 17:06:08 -0700 Subject: [PATCH] trap touchstart touchend events within container --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index e850e591..802c2b76 100644 --- a/select2.js +++ b/select2.js @@ -777,7 +777,7 @@ the specific language governing permissions and limitations under the Apache Lic // for mouse events outside of itself so it can close itself. since the dropdown is now outside the select2's // dom it will trigger the popup close, which is not what we want // focusin can cause focus wars between modals and select2 since the dropdown is outside the modal. - this.dropdown.on("click mouseup mousedown focusin", function (e) { e.stopPropagation(); }); + this.dropdown.on("click mouseup mousedown touchstart touchend focusin", function (e) { e.stopPropagation(); }); this.nextSearchTerm = undefined;