mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-14 01:24:19 +02:00
fire active event on active
This commit is contained in:
4
js/bootstrap-scrollspy.js
vendored
4
js/bootstrap-scrollspy.js
vendored
@@ -92,8 +92,10 @@
|
|||||||
.addClass('active')
|
.addClass('active')
|
||||||
|
|
||||||
if ( active.parent('.dropdown-menu') ) {
|
if ( active.parent('.dropdown-menu') ) {
|
||||||
active.closest('li.dropdown').addClass('active')
|
active = active.closest('li.dropdown').addClass('active')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
active.trigger('active')
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user