]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #12211: Scrollspy: Navs in different tabs can interfere with each othe 13576/head
authorfat <jacobthornton@gmail.com>
Tue, 13 May 2014 02:15:23 +0000 (19:15 -0700)
committerfat <jacobthornton@gmail.com>
Tue, 13 May 2014 02:15:23 +0000 (19:15 -0700)
js/scrollspy.js

index 1f9153552647a46c514c131d5c8a50d0c3b6d0cb..4ba733e787062b39b2ecd7afaa793ba5f11273a1 100644 (file)
@@ -46,6 +46,7 @@
 
     this.$body
       .find(this.selector)
+      .filter(':visible')
       .map(function () {
         var $el   = $(this)
         var href  = $el.data('target') || $el.attr('href')