From d15444d15e0adc89cfa42bb7bdfcd8ce76f1881b Mon Sep 17 00:00:00 2001 From: Heinrich Fenkart <hnrch02@gmail.com> Date: Mon, 8 Sep 2014 23:58:27 +0200 Subject: [PATCH] Scrollspy: ignore invisible list items Fixes #13071 --- js/scrollspy.js | 1 + 1 file changed, 1 insertion(+) 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] }) -- GitLab