Merge pull request #14569 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
1 changed files with 1 additions and 0 deletions

View File

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