1
0
mirror of synced 2024-11-26 06:46:04 +03:00

trap touchstart touchend events within container

This commit is contained in:
Hung Dao 2014-04-03 17:06:08 -07:00
parent 0d06066331
commit 534bbff06f

View File

@ -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;