From 6161c982384cba2ba7eee4462b4a1b8f6caf2400 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 21 Apr 2014 16:42:22 -0700 Subject: [PATCH] document that non-:visible scrollspy targets are ignored; fixes #13394 --- docs/_includes/js/scrollspy.html | 4 ++++ 1 file changed, 4 insertions(+) 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')

-- 2.47.2