From: Heinrich Fenkart Date: Mon, 8 Sep 2014 21:58:27 +0000 (+0200) Subject: Scrollspy: ignore invisible list items X-Git-Tag: v3.3.0~174^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14569%2Fhead;p=thirdparty%2Fbootstrap.git Scrollspy: ignore invisible list items Fixes #13071 --- diff --git a/js/scrollspy.js b/js/scrollspy.js index db2378787e..841df18784 100644 --- a/js/scrollspy.js +++ b/js/scrollspy.js @@ -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] })