aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2017-04-20 14:08:40 +0100
committerGitHub <[email protected]>2017-04-20 14:08:40 +0100
commit1f37c536b2691e4a98310982f9b58ede506f11d8 (patch)
tree76787363e4f1a41523f97ed8b8988931e5400384 /js/src
parentef099ad05deaa42f92c0fce903ed75010d50e317 (diff)
downloadbootstrap-1f37c536b2691e4a98310982f9b58ede506f11d8.tar.xz
bootstrap-1f37c536b2691e4a98310982f9b58ede506f11d8.zip
Tweak iOS hack for dropdown
Tweak to https://github.com/twbs/bootstrap/pull/22426, where the wrong selector slipped through the net (selecting all of `<body>`s grand-children rather than children)
Diffstat (limited to 'js/src')
-rw-r--r--js/src/dropdown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 812e718a8..eb536dc7d 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -111,7 +111,7 @@ const Dropdown = (($) => {
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if ('ontouchstart' in document.documentElement &&
!$(parent).closest(Selector.NAVBAR_NAV).length) {
- $('body').children().on('mouseover', '*', $.noop)
+ $('body').children().on('mouseover', null, $.noop)
}
this.focus()
@@ -190,7 +190,7 @@ const Dropdown = (($) => {
// if this is a touch-enabled device we remove the extra
// empty mouseover listeners we added for iOS support
if ('ontouchstart' in document.documentElement) {
- $('body').children().off('mouseover', '*', $.noop)
+ $('body').children().off('mouseover', null, $.noop)
}
toggles[i].setAttribute('aria-expanded', 'false')