mirror of
https://github.com/jasny/bootstrap.git
synced 2026-01-14 00:48:04 -05:00
Scrollspy fix for hidden elements
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
|
||||
return ($href
|
||||
&& $href.length
|
||||
&& $href.is(':visible')
|
||||
&& [[ $href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
|
||||
})
|
||||
.sort(function (a, b) { return a[0] - b[0] })
|
||||
|
||||
Reference in New Issue
Block a user