Skip to content

Commit 79e031f

Browse files
committed
Merge pull request select2#2241 from zocoi/master
Trap touch events within container
2 parents 435b536 + 70be47d commit 79e031f

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
@@ -788,7 +788,7 @@ the specific language governing permissions and limitations under the Apache Lic
788788
// for mouse events outside of itself so it can close itself. since the dropdown is now outside the select2's
789789
// dom it will trigger the popup close, which is not what we want
790790
// focusin can cause focus wars between modals and select2 since the dropdown is outside the modal.
791-
this.dropdown.on("click mouseup mousedown focusin", function (e) { e.stopPropagation(); });
791+
this.dropdown.on("click mouseup mousedown touchstart touchend focusin", function (e) { e.stopPropagation(); });
792792

793793
this.nextSearchTerm = undefined;
794794

0 commit comments

Comments
 (0)