From 382e9840ca66576608648ee7894ba1d670997ed9 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 24 Dec 2022 20:18:21 -0500 Subject: [PATCH] Make chosen work on mobile https://realize.be/blog/mobile-support-chosen --- web/skins/classic/js/chosen/chosen.jquery.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/js/chosen/chosen.jquery.js b/web/skins/classic/js/chosen/chosen.jquery.js index 2958bdc01..aeaf35bbc 100644 --- a/web/skins/classic/js/chosen/chosen.jquery.js +++ b/web/skins/classic/js/chosen/chosen.jquery.js @@ -624,6 +624,7 @@ This file is generated by `grunt build`, do not edit it by hand. if ("Microsoft Internet Explorer" === window.navigator.appName) { return document.documentMode >= 8; } + return true; if (/iP(od|hone)/i.test(window.navigator.userAgent) || /IEMobile/i.test(window.navigator.userAgent) @@ -896,7 +897,7 @@ This file is generated by `grunt build`, do not edit it by hand. return; } if (evt && ((ref = evt.type) === 'mousedown' || ref === 'touchstart') && !this.results_showing) { - evt.preventDefault(); + //evt.preventDefault(); } if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) { if (!this.active_field) {