mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
comment on touchstart.dropdown e.stopPropagation
This commit is contained in:
parent
3068d2f81b
commit
a5321938e7
1 changed files with 10 additions and 0 deletions
10
vendor/assets/javascripts/bootstrap.js
vendored
10
vendor/assets/javascripts/bootstrap.js
vendored
|
@ -2024,4 +2024,14 @@
|
|||
|
||||
}(window.jQuery);
|
||||
|
||||
|
||||
// This code taken from:
|
||||
// twbs/bootstrap#5067 (comment)
|
||||
//
|
||||
// It fixes a problem that may be present on certain Android (and other) browsers whereby pop-up menus like Huginn's Account one on the menu bar do not
|
||||
// open on touch.
|
||||
//
|
||||
// The problem and fix is also summarised in this blog post.
|
||||
// http://alittlecode.com/fix-twitter-bootstraps-dropdown-menus-in-touch-screens/
|
||||
|
||||
$('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });
|
||||
|
|
Loading…
Add table
Reference in a new issue