]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: Ensure drilldown has the right height inside of responsive top bar when toggled... 11760/head
authorRyan Lavender <ryan@Ryans-MacBook-Pro-5.local>
Tue, 28 May 2019 17:52:30 +0000 (13:52 -0400)
committerRyan Lavender <ryan@Ryans-MBP-5.attlocal.net>
Wed, 18 Dec 2019 18:31:17 +0000 (13:31 -0500)
Fixed the _back function so that $currentMenu is updated to the root menu if the current menu doesn't have a parent submenu.

js/foundation.drilldown.js

index 956084e274d897be6a013182f3584a733da737a5..2475a6364344ce927c4fcf7503d32c821e79d51a 100644 (file)
@@ -340,6 +340,9 @@ class Drilldown extends Plugin {
         if (parentSubMenu.length) {
           _this._show(parentSubMenu);
         }
+        else {
+          _this.$currentMenu = _this.$element;
+        }
       });
   }