]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Scrollspy: ignore invisible list items 14569/head
authorHeinrich Fenkart <hnrch02@gmail.com>
Mon, 8 Sep 2014 21:58:27 +0000 (23:58 +0200)
committerHeinrich Fenkart <hnrch02@gmail.com>
Mon, 8 Sep 2014 22:18:18 +0000 (00:18 +0200)
Fixes #13071

js/scrollspy.js

index db2378787e3d578c3b812ba73af42556e99bb0a5..841df18784c2d5fadf92af1c6e492143b53ff33a 100644 (file)
@@ -65,6 +65,7 @@
         return ($href
           && $href.length
           && $href.is(':visible')
+          && $el.is(':visible')
           && [[$href[offsetMethod]().top + offsetBase, href]]) || null
       })
       .sort(function (a, b) { return a[0] - b[0] })