diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js index b7ff907f71..dea6e95f03 100644 --- a/js/bootstrap-scrollspy.js +++ b/js/bootstrap-scrollspy.js @@ -92,8 +92,10 @@ .addClass('active') if ( active.parent('.dropdown-menu') ) { - active.closest('li.dropdown').addClass('active') + active = active.closest('li.dropdown').addClass('active') } + + active.trigger('active') } }