Skip to content

Commit 7426ced

Browse files
committed
Merge pull request twbs#5323 from artiz/master
Please check my fix for twbs#4550
2 parents c52368d + 0944e03 commit 7426ced

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

js/bootstrap-dropdown.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@
100100
}
101101

102102
function clearMenus() {
103-
getParent($(toggle))
104-
.removeClass('open')
103+
$(toggle).each(function () {
104+
getParent($(this)).removeClass('open')
105+
})
105106
}
106107

107108
function getParent($this) {

less/responsive-navbar.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
top: auto;
100100
left: auto;
101101
float: none;
102-
display: block;
102+
display: none;
103103
max-width: none;
104104
margin: 0 15px;
105105
padding: 0;
@@ -108,6 +108,10 @@
108108
.border-radius(0);
109109
.box-shadow(none);
110110
}
111+
.nav-collapse .open > .dropdown-menu {
112+
display: block;
113+
}
114+
111115
.nav-collapse .dropdown-menu:before,
112116
.nav-collapse .dropdown-menu:after {
113117
display: none;

0 commit comments

Comments
 (0)