mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
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.
This commit is contained in:
parent
e7d6af003e
commit
9f30f55721
@ -96,7 +96,7 @@
|
|||||||
this.activeTarget = target
|
this.activeTarget = target
|
||||||
|
|
||||||
$(this.selector)
|
$(this.selector)
|
||||||
.parents('.active')
|
.parentsUntil(this.options.target, '.active')
|
||||||
.removeClass('active')
|
.removeClass('active')
|
||||||
|
|
||||||
var selector = this.selector
|
var selector = this.selector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user