diff options
| author | Heinrich Fenkart <[email protected]> | 2014-09-08 23:58:27 +0200 |
|---|---|---|
| committer | Heinrich Fenkart <[email protected]> | 2014-09-09 00:18:18 +0200 |
| commit | d15444d15e0adc89cfa42bb7bdfcd8ce76f1881b (patch) | |
| tree | d214a7c3ed48d8c08b35e63c2bd617b28ac77ebf | |
| parent | 859ddc11fb350f985c377474b7727010e7da57a9 (diff) | |
| download | bootstrap-d15444d15e0adc89cfa42bb7bdfcd8ce76f1881b.tar.xz bootstrap-d15444d15e0adc89cfa42bb7bdfcd8ce76f1881b.zip | |
Scrollspy: ignore invisible list items
Fixes #13071
| -rw-r--r-- | js/scrollspy.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/scrollspy.js b/js/scrollspy.js index db2378787..841df1878 100644 --- a/js/scrollspy.js +++ b/js/scrollspy.js @@ -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] }) |
