From: Ryan Lavender Date: Tue, 28 May 2019 17:52:30 +0000 (-0400) Subject: fix: Ensure drilldown has the right height inside of responsive top bar when toggled... X-Git-Tag: v6.7.1~28^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11760%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fix: Ensure drilldown has the right height inside of responsive top bar when toggled #11759 Fixed the _back function so that $currentMenu is updated to the root menu if the current menu doesn't have a parent submenu. --- diff --git a/js/foundation.drilldown.js b/js/foundation.drilldown.js index 956084e27..2475a6364 100644 --- a/js/foundation.drilldown.js +++ b/js/foundation.drilldown.js @@ -340,6 +340,9 @@ class Drilldown extends Plugin { if (parentSubMenu.length) { _this._show(parentSubMenu); } + else { + _this.$currentMenu = _this.$element; + } }); }