aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob <[email protected]>2014-05-12 19:17:12 -0700
committerJacob <[email protected]>2014-05-12 19:17:12 -0700
commitfd0f563d8a820e8db714e066c121dcc0d9cd6535 (patch)
tree68f9bc46b12314a2562f19466466038b8eb241cd
parent54284a13c6b503d925bf6f75db2830f1af7fcf98 (diff)
parent9900771aa7f1b3ddcee49aec84082104776ace70 (diff)
downloadbootstrap-fd0f563d8a820e8db714e066c121dcc0d9cd6535.tar.xz
bootstrap-fd0f563d8a820e8db714e066c121dcc0d9cd6535.zip
Merge pull request #13576 from twbs/fat-12211
fixes #12211: Scrollspy: Navs in different tabs can interfere with each ...
-rw-r--r--js/scrollspy.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/scrollspy.js b/js/scrollspy.js
index 1f9153552..4ba733e78 100644
--- a/js/scrollspy.js
+++ b/js/scrollspy.js
@@ -46,6 +46,7 @@
this.$body
.find(this.selector)
+ .filter(':visible')
.map(function () {
var $el = $(this)
var href = $el.data('target') || $el.attr('href')