Skip to content

Commit

Permalink
Fix for #4550
Browse files Browse the repository at this point in the history
Also fixes dropdowns hiding behavior for case when two or more dropdowns
with [data-toggle=dropdown] exist on the page
  • Loading branch information
artiz committed Sep 27, 2012
1 parent c52368d commit 0944e03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions js/bootstrap-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@
}

function clearMenus() {
getParent($(toggle))
.removeClass('open')
$(toggle).each(function () {
getParent($(this)).removeClass('open')
})
}

function getParent($this) {
Expand Down
6 changes: 5 additions & 1 deletion less/responsive-navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
top: auto;
left: auto;
float: none;
display: block;
display: none;
max-width: none;
margin: 0 15px;
padding: 0;
Expand All @@ -108,6 +108,10 @@
.border-radius(0);
.box-shadow(none);
}
.nav-collapse .open > .dropdown-menu {
display: block;
}

.nav-collapse .dropdown-menu:before,
.nav-collapse .dropdown-menu:after {
display: none;
Expand Down

0 comments on commit 0944e03

Please sign in to comment.