Quick'n'dirty patch to address touchscreen issues

The code taken from here:

https://github.com/twbs/bootstrap/pull/5067#issuecomment-8604323

KenYN 11 年之前
父節點
當前提交
eebd46d662
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      vendor/assets/javascripts/bootstrap.js

+ 3 - 1
vendor/assets/javascripts/bootstrap.js

@@ -2022,4 +2022,6 @@
2022 2022
   })
2023 2023
 
2024 2024
 
2025
-}(window.jQuery);
2025
+}(window.jQuery);
2026
+
2027
+$('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });