diff --git a/js/tab.js b/js/tab.js index ddb7fc9c4f..311a01f10b 100644 --- a/js/tab.js +++ b/js/tab.js @@ -88,7 +88,7 @@ element.removeClass('fade') } - if (element.parent('.dropdown-menu')) { + if (element.parent('.dropdown-menu').length) { element .closest('li.dropdown') .addClass('active')