diff options
| author | Chris Rebert <[email protected]> | 2014-04-21 16:42:22 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-04-21 16:42:22 -0700 |
| commit | 6161c982384cba2ba7eee4462b4a1b8f6caf2400 (patch) | |
| tree | 3a37e4f06c9c8a0a805a6cfa1f1aa56575bed377 /docs/_includes | |
| parent | 9c4afc577253ada54d3ff27965e380a5c9f4e60e (diff) | |
| download | bootstrap-6161c982384cba2ba7eee4462b4a1b8f6caf2400.tar.xz bootstrap-6161c982384cba2ba7eee4462b4a1b8f6caf2400.zip | |
document that non-:visible scrollspy targets are ignored; fixes #13394
Diffstat (limited to 'docs/_includes')
| -rw-r--r-- | docs/_includes/js/scrollspy.html | 4 |
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><a href="#home">home</a></code> must correspond to something in the DOM like <code><div id="home"></div></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> |
