From dd40eaa3920b6211df0cb3fa0a509f04c6d45b58 Mon Sep 17 00:00:00 2001 From: Ryan Lavender Date: Tue, 28 May 2019 13:52:30 -0400 Subject: [PATCH] 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. --- js/foundation.drilldown.js | 3 +++ 1 file changed, 3 insertions(+) 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; + } }); } -- 2.47.2