]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
document that non-:visible scrollspy targets are ignored; fixes #13394 13397/head
authorChris Rebert <code@rebertia.com>
Mon, 21 Apr 2014 23:42:22 +0000 (16:42 -0700)
committerChris Rebert <code@rebertia.com>
Mon, 21 Apr 2014 23:42:22 +0000 (16:42 -0700)
docs/_includes/js/scrollspy.html

index 989c7ea5e85f8faa4f7350bcee0d974a352d1cff..9767254e0db554145efa553e131273997672d664 100644 (file)
@@ -83,6 +83,10 @@ $('body').scrollspy({ target: '.navbar-example' })
     <h4>Resolvable ID targets required</h4>
     <p>Navbar links must have resolvable id targets. For example, a <code>&lt;a href="#home"&gt;home&lt;/a&gt;</code> must correspond to something in the DOM like <code>&lt;div id="home"&gt;&lt;/div&gt;</code>.</p>
   </div>
+  <div class="bs-callout bs-callout-info">
+    <h4>Non-<code>:visible</code> target elements ignored</h4>
+    <p>Target elements that are not <a href="http://api.jquery.com/visible-selector/"><code>:visible</code> according to jQuery</a> will be ignored and their corresponding nav items will never be highlighted.</p>
+  </div>
 
   <h3>Methods</h3>
   <h4>.scrollspy('refresh')</h4>