Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr-july <mr_july@mail.ru>2016-12-23 09:00:56 +0300
committerMark Otto <markd.otto@gmail.com>2016-12-23 09:00:56 +0300
commit1d6cdb65b32f918fc497953adf02b60e26ea3fec (patch)
tree9a85211439c43e9c925dd054bd272410e6653648 /js/src/scrollspy.js
parent69935953413ca0bd96f2d70fe3b6f905ae2141b0 (diff)
scrollspy: fix wrong activation of all nested links (#20304)
* fix wrong activation of all nested links; just first level item should be activated * use template instead of string concatenation
Diffstat (limited to 'js/src/scrollspy.js')
-rw-r--r--js/src/scrollspy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js
index 9cb1438ca7..0a4708bf97 100644
--- a/js/src/scrollspy.js
+++ b/js/src/scrollspy.js
@@ -258,7 +258,7 @@ const ScrollSpy = (($) => {
} else {
// todo (fat) this is kinda sus...
// recursively add actives to tested nav-links
- $link.parents(Selector.LI).find(Selector.NAV_LINKS).addClass(ClassName.ACTIVE)
+ $link.parents(Selector.LI).find(`> ${Selector.NAV_LINKS}`).addClass(ClassName.ACTIVE)
}
$(this._scrollElement).trigger(Event.ACTIVATE, {