0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Fix for copy/paste error in iOS hack to tooltips

(with apologies, this slipped through due to build system problems on my
end)
This commit is contained in:
Patrick H. Lauke 2017-04-20 14:35:33 +01:00 committed by GitHub
parent 1f37c536b2
commit fb3303f5dd

View File

@ -308,8 +308,7 @@ const Tooltip = (($) => {
// empty mouseover listeners to the body's immediate children;
// only needed because of broken event delegation on iOS
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if ('ontouchstart' in document.documentElement &&
!$(parent).closest(Selector.NAVBAR_NAV).length) {
if ('ontouchstart' in document.documentElement) {
$('body').children().on('mouseover', null, $.noop)
}