From 48ab412b71773e6c3e4c8a77b9acb9041b71a9e9 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Sat, 16 Sep 2017 16:46:13 -0300 Subject: [PATCH 1/4] fix(scrollspy): Handle nested navs when nav-link inside nav-item --- js/src/scrollspy.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index 70067c0b35be..6d1f82d7dff6 100644 --- a/js/src/scrollspy.js +++ b/js/src/scrollspy.js @@ -54,6 +54,7 @@ const ScrollSpy = (() => { ACTIVE : '.active', NAV_LIST_GROUP : '.nav, .list-group', NAV_LINKS : '.nav-link', + NAV_ITEMS : '.nav-item', LIST_ITEMS : '.list-group-item', DROPDOWN : '.dropdown', DROPDOWN_ITEMS : '.dropdown-item', @@ -264,6 +265,8 @@ const ScrollSpy = (() => { // Set triggered links parents as active // With both