1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-15 01:55:46 +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') 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')