From: Chris Rebert Date: Mon, 21 Apr 2014 23:42:22 +0000 (-0700) Subject: document that non-:visible scrollspy targets are ignored; fixes #13394 X-Git-Tag: v3.2.0~229^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6161c982384cba2ba7eee4462b4a1b8f6caf2400;p=thirdparty%2Fbootstrap.git document that non-:visible scrollspy targets are ignored; fixes #13394 --- diff --git a/docs/_includes/js/scrollspy.html b/docs/_includes/js/scrollspy.html index 989c7ea5e8..9767254e0d 100644 --- a/docs/_includes/js/scrollspy.html +++ b/docs/_includes/js/scrollspy.html @@ -83,6 +83,10 @@ $('body').scrollspy({ target: '.navbar-example' })

Resolvable ID targets required

Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the DOM like <div id="home"></div>.

+
+

Non-:visible target elements ignored

+

Target elements that are not :visible according to jQuery will be ignored and their corresponding nav items will never be highlighted.

+

Methods

.scrollspy('refresh')