Skip to content

Commit

Permalink
Scrollspy: ignore invisible list items
Browse files Browse the repository at this point in the history
Fixes #13071
  • Loading branch information
hnrch02 committed Sep 8, 2014
1 parent 859ddc1 commit d15444d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/scrollspy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] })
Expand Down

0 comments on commit d15444d

Please sign in to comment.