aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/scrollspy.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/scrollspy.js b/js/scrollspy.js
index db2378787..841df1878 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] })