mirror of
https://github.com/jasny/bootstrap.git
synced 2026-04-24 03:00:49 -04:00
Fixed bug in dropdown toggle where menu would only clear on the first drop down
This commit is contained in:
7
docs/assets/js/bootstrap-dropdown.js
vendored
7
docs/assets/js/bootstrap-dropdown.js
vendored
@@ -99,9 +99,10 @@
|
||||
|
||||
}
|
||||
|
||||
function clearMenus() {
|
||||
getParent($(toggle))
|
||||
.removeClass('open')
|
||||
function clearMenus() {
|
||||
$(toggle).each(function () {
|
||||
getParent($(this)).removeClass("open")
|
||||
})
|
||||
}
|
||||
|
||||
function getParent($this) {
|
||||
|
||||
7
docs/assets/js/bootstrap.js
vendored
7
docs/assets/js/bootstrap.js
vendored
@@ -674,9 +674,10 @@
|
||||
|
||||
}
|
||||
|
||||
function clearMenus() {
|
||||
getParent($(toggle))
|
||||
.removeClass('open')
|
||||
function clearMenus() {
|
||||
$(toggle).each(function () {
|
||||
getParent($(this)).removeClass("open")
|
||||
})
|
||||
}
|
||||
|
||||
function getParent($this) {
|
||||
|
||||
Reference in New Issue
Block a user