2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-18 12:39:41 +03:00

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
+1
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] })