1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 17:14:04 +02:00

Fix error in condition in Tab plugin

Refs #15186
This commit is contained in:
Chris Rebert
2015-01-21 14:13:26 -08:00
parent c8be2a063a
commit 426e8e12cd

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')