Skip to content

Commit

Permalink
Merge pull request #12322 from pebutler3/fix-drilldown-hide-all
Browse files Browse the repository at this point in the history
fix: removing the 'invisible' class from parent list when utilizing
  • Loading branch information
joeworkman authored Nov 17, 2021
2 parents fe9ca5b + a4c0eb9 commit 87f5a51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/foundation.drilldown.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Drilldown extends Plugin {
this.$submenus.each(function(){
var $menu = $(this),
$back = $menu.find('.js-drilldown-back');
if(!$back.length){
if(!$back.length) {
switch (_this.options.backButtonPosition) {
case "bottom":
$menu.append(_this.options.backButton);
Expand Down Expand Up @@ -293,6 +293,7 @@ class Drilldown extends Plugin {
_hideAll() {
var $elem = this.$element.find('.is-drilldown-submenu.is-active')
$elem.addClass('is-closing');
$elem.parent().closest('ul').removeClass('invisible');

if (this.options.autoHeight) {
const calcHeight = $elem.parent().closest('ul').data('calcHeight');
Expand Down

0 comments on commit 87f5a51

Please sign in to comment.