aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-04-23 14:44:22 -0700
committerChris Rebert <[email protected]>2014-04-23 14:44:22 -0700
commitaca859a13fc2f538aed7fffdd4d28a5393a195ea (patch)
tree0d8ac3abc39947692fe50f50fc11a9c45f1d2d36
parentb882a63ff710ec09904734cfb4658193d4210889 (diff)
parent6161c982384cba2ba7eee4462b4a1b8f6caf2400 (diff)
downloadbootstrap-aca859a13fc2f538aed7fffdd4d28a5393a195ea.tar.xz
bootstrap-aca859a13fc2f538aed7fffdd4d28a5393a195ea.zip
Merge pull request #13397 from twbs/fix-13394
document that non-:visible scrollspy targets are ignored
-rw-r--r--docs/_includes/js/scrollspy.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/_includes/js/scrollspy.html b/docs/_includes/js/scrollspy.html
index 989c7ea5e..9767254e0 100644
--- a/docs/_includes/js/scrollspy.html
+++ b/docs/_includes/js/scrollspy.html
@@ -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>