mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fire active event on active
This commit is contained in:
parent
67f199678c
commit
05e0d5f3d9
1 changed files with 3 additions and 1 deletions
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')
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue