Skip to content

Commit

Permalink
Merge pull request #13397 from twbs/fix-13394
Browse files Browse the repository at this point in the history
document that non-:visible scrollspy targets are ignored
  • Loading branch information
cvrebert committed Apr 23, 2014
2 parents b882a63 + 6161c98 commit aca859a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_includes/js/scrollspy.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ <h3>Via JavaScript</h3>
<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>
Expand Down

0 comments on commit aca859a

Please sign in to comment.