Merge pull request #15630 from twbs/tabs-cond-fix

Fix error in condition in Tab plugin
This commit is contained in:
Chris Rebert 2015-01-28 10:59:51 -08:00
commit af8fa54fcd
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@
element.removeClass('fade')
}
if (element.parent('.dropdown-menu')) {
if (element.parent('.dropdown-menu').length) {
element
.closest('li.dropdown')
.addClass('active')