2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

add length to parent dropdown check #3316

This commit is contained in:
Jacob Thornton
2012-06-02 19:02:30 -07:00
parent b8a8927b0c
commit 354f99f0bd
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1418,7 +1418,7 @@
.parent('li')
.addClass('active')
if (active.parent('.dropdown-menu')) {
if (active.parent('.dropdown-menu').length) {
active = active.closest('li.dropdown').addClass('active')
}