diff --git a/core/misc/vertical-tabs.js b/core/misc/vertical-tabs.js
index acd181bb59d7f12d8a989e54fc9fbcab43b1c705..fe95e8eb31d00dddce159e92b6e963b7a6a10064 100644
--- a/core/misc/vertical-tabs.js
+++ b/core/misc/vertical-tabs.js
@@ -148,6 +148,8 @@ Drupal.verticalTab.prototype = {
   tabShow: function () {
     // Display the tab.
     this.item.show();
+    // Show the vertical tabs.
+    this.item.closest('.form-type-vertical-tabs').show();
     // Update .first marker for items. We need recurse from parent to retain the
     // actual DOM element order as jQuery implements sortOrder, but not as public
     // method.
@@ -178,6 +180,10 @@ Drupal.verticalTab.prototype = {
     if ($firstTab.length) {
       $firstTab.data('verticalTab').focus();
     }
+    // Hide the vertical tabs (if no tabs remain).
+    else {
+      this.item.closest('.form-type-vertical-tabs').hide();
+    }
     return this;
   }
 };