This commit is contained in:
XhmikosR 2020-12-08 09:28:08 +02:00
parent 88286fef6e
commit 70bba97f6c
2 changed files with 3 additions and 3 deletions

View file

@ -184,7 +184,7 @@ class Dropdown extends BaseComponent {
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if (isTouchEnabledDevice && !parent.closest(SELECTOR_NAVBAR_NAV)) {
[].concat(...document.body.children).forEach(element => {
EventHandler.on(element, 'mouseover', null, noop())
EventHandler.on(element, 'mouseover', null, noop)
})
}
@ -384,7 +384,7 @@ class Dropdown extends BaseComponent {
// empty mouseover listeners we added for iOS support
if (isTouchEnabledDevice) {
[].concat(...document.body.children).forEach(element => {
EventHandler.off(element, 'mouseover', null, noop())
EventHandler.off(element, 'mouseover', null, noop)
})
}

View file

@ -301,7 +301,7 @@ class Tooltip extends BaseComponent {
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if (isTouchEnabledDevice) {
[].concat(...document.body.children).forEach(element => {
EventHandler.on(element, 'mouseover', noop())
EventHandler.on(element, 'mouseover', noop)
})
}