aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfat <[email protected]>2014-05-12 19:15:23 -0700
committerfat <[email protected]>2014-05-12 19:15:23 -0700
commit9900771aa7f1b3ddcee49aec84082104776ace70 (patch)
tree68f9bc46b12314a2562f19466466038b8eb241cd
parent54284a13c6b503d925bf6f75db2830f1af7fcf98 (diff)
downloadbootstrap-9900771aa7f1b3ddcee49aec84082104776ace70.tar.xz
bootstrap-9900771aa7f1b3ddcee49aec84082104776ace70.zip
fixes #12211: Scrollspy: Navs in different tabs can interfere with each othe
-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')