]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix for copy/paste error in iOS hack to tooltips
authorPatrick H. Lauke <redux@splintered.co.uk>
Thu, 20 Apr 2017 13:35:33 +0000 (14:35 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Apr 2017 13:35:33 +0000 (14:35 +0100)
(with apologies, this slipped through due to build system problems on my
end)

js/src/tooltip.js

index c97f491084cd049733343fda4a32a61661c09292..47c3d8d0588fabfad65eba8001bb9ba29d4c4bc5 100644 (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)
         }