0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01: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') element.removeClass('fade')
} }
if (element.parent('.dropdown-menu')) { if (element.parent('.dropdown-menu').length) {
element element
.closest('li.dropdown') .closest('li.dropdown')
.addClass('active') .addClass('active')