mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
listen to window for dropdown clear
This commit is contained in:
parent
90e3a706ba
commit
314feb702f
@ -15,15 +15,6 @@ $(function(){
|
||||
}, 0);
|
||||
|
||||
|
||||
// Docs topbar nav
|
||||
// ===============
|
||||
|
||||
$('.nav .active').on('click', function (e) {
|
||||
e.preventDefault()
|
||||
$(this).siblings().toggle()
|
||||
});
|
||||
|
||||
|
||||
// table sort example
|
||||
// ==================
|
||||
|
||||
|
2
js/bootstrap-dropdown.js
vendored
2
js/bootstrap-dropdown.js
vendored
@ -74,7 +74,7 @@
|
||||
* =================================== */
|
||||
|
||||
$(function () {
|
||||
$('html').on('click.dropdown.data-api', clearMenus)
|
||||
$(window).on('click.dropdown.data-api', clearMenus)
|
||||
$('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user