0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-03-29 15:51:28 +01:00

Merge pull request from twbs/scrollspy-ignore-invisible-targets

Scrollspy: ignore invisible list items
This commit is contained in:
Heinrich Fenkart 2014-09-13 02:29:28 +02:00
commit a97db64881

@ -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] })