]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Update scrollspy.js
authormoodyroto <michael.rotoloni@moodys.com>
Mon, 11 Nov 2013 17:21:34 +0000 (12:21 -0500)
committermoodyroto <michael.rotoloni@moodys.com>
Mon, 11 Nov 2013 17:21:34 +0000 (12:21 -0500)
commit9f30f557213f1e8f821414473550639f5f93f29a
tree08d7a2a9a61f128bb9c687cf98d77a95970dba7b
parente7d6af003e6af02c26cc8864da72dc807f8f97a1
Update scrollspy.js

Scrollspy target in tab content does not work properly. Calling .parents('.active') will return all parents with an active class (including the tab pane). Changing this line to .parentsUntil(this.options.target, '.active') should resolve the issue. This will scope the query to only search for active elements inside the scrollspy target.
js/scrollspy.js