mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-02 02:29:24 +01:00
document that non-:visible scrollspy targets are ignored; fixes #13394
This commit is contained in:
parent
9c4afc5772
commit
6161c98238
@ -83,6 +83,10 @@ $('body').scrollspy({ target: '.navbar-example' })
|
|||||||
<h4>Resolvable ID targets required</h4>
|
<h4>Resolvable ID targets required</h4>
|
||||||
<p>Navbar links must have resolvable id targets. For example, a <code><a href="#home">home</a></code> must correspond to something in the DOM like <code><div id="home"></div></code>.</p>
|
<p>Navbar links must have resolvable id targets. For example, a <code><a href="#home">home</a></code> must correspond to something in the DOM like <code><div id="home"></div></code>.</p>
|
||||||
</div>
|
</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>
|
<h3>Methods</h3>
|
||||||
<h4>.scrollspy('refresh')</h4>
|
<h4>.scrollspy('refresh')</h4>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user