Commit ea40e799 authored by Jacob's avatar Jacob
Browse files

Merge pull request #11203 from jasny/patch-1

Scrollspy acting up when targets are hidden
parents 5bf13914 5a38a577
Showing with 1 addition and 0 deletions
+1 -0
......@@ -51,6 +51,7 @@
return ($href
&& $href.length
&& $href.is(':visible')
&& [[ $href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
})
.sort(function (a, b) { return a[0] - b[0] })
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment