From: Patrick H. Lauke Date: Thu, 20 Apr 2017 13:35:33 +0000 (+0100) Subject: Fix for copy/paste error in iOS hack to tooltips X-Git-Tag: v4.0.0-beta~166^2~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb3303f5ddff2f57c3603ceabb6668d4a3cb559c;p=thirdparty%2Fbootstrap.git Fix for copy/paste error in iOS hack to tooltips (with apologies, this slipped through due to build system problems on my end) --- diff --git a/js/src/tooltip.js b/js/src/tooltip.js index c97f491084..47c3d8d058 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -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) }