mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-22 23:40:23 +00:00
Merge pull request #11203 from jasny/patch-1
Scrollspy acting up when targets are hidden
This commit is contained in:
commit
ea40e7999d
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,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] })
|
||||
|
|
|
|||
Loading…
Reference in a new issue