0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Scrollspy: ignore invisible list items

Fixes #13071
This commit is contained in:
Heinrich Fenkart 2014-09-08 23:58:27 +02:00
parent 859ddc11fb
commit d15444d15e

View File

@ -65,6 +65,7 @@
return ($href return ($href
&& $href.length && $href.length
&& $href.is(':visible') && $href.is(':visible')
&& $el.is(':visible')
&& [[$href[offsetMethod]().top + offsetBase, href]]) || null && [[$href[offsetMethod]().top + offsetBase, href]]) || null
}) })
.sort(function (a, b) { return a[0] - b[0] }) .sort(function (a, b) { return a[0] - b[0] })