diff --git a/js/tab.js b/js/tab.js
index e1c155920f2e329edac04fa3587c013bff4ef67f..e7864a7f4c1f12b47c5f672fba75f0045a875540 100644
--- a/js/tab.js
+++ b/js/tab.js
@@ -71,6 +71,7 @@
         .find('> .dropdown-menu > .active')
         .removeClass('active')
 
+      element.parent().find(" > .active").removeClass('active');
       element.addClass('active')
 
       if (transition) {