1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

Fixed bug in dropdown toggle where menu would only clear on the first drop down

This commit is contained in:
Erlend Halvorsen
2012-09-27 10:31:40 +02:00
parent 0540b63ab0
commit e9a648cd39
4 changed files with 53 additions and 10 deletions

View File

@@ -674,9 +674,10 @@
}
function clearMenus() {
getParent($(toggle))
.removeClass('open')
function clearMenus() {
$(toggle).each(function () {
getParent($(this)).removeClass("open")
})
}
function getParent($this) {