aboutsummaryrefslogtreecommitdiff
path: root/js/src/dropdown.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2018-02-24 12:38:51 -0800
committerMark Otto <[email protected]>2018-02-24 12:38:51 -0800
commitb8bfd263581faf4950e3702277126dd7581d7ba8 (patch)
tree9724ed3e5a2a123375c87c0256209aaa74556c58 /js/src/dropdown.js
parent982aeea1f7a27109d60baf07adcc73cd08742939 (diff)
parent6708c4dba5a1d3176b53df120706888a1e22fb05 (diff)
downloadbootstrap-b8bfd263581faf4950e3702277126dd7581d7ba8.tar.xz
bootstrap-b8bfd263581faf4950e3702277126dd7581d7ba8.zip
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
Diffstat (limited to 'js/src/dropdown.js')
-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 b877017f2..2f6929854 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -183,7 +183,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 === 0) {
- $('body').children().on('mouseover', null, $.noop)
+ $(document.body).children().on('mouseover', null, $.noop)
}
this._element.focus()
@@ -365,7 +365,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', null, $.noop)
+ $(document.body).children().off('mouseover', null, $.noop)
}
toggles[i].setAttribute('aria-expanded', 'false')