Skip to content

Commit

Permalink
fix(megamenu): ensure height is removed when going backward
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Jul 2, 2019
1 parent 3690c4f commit e3aea5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/o-megamenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ class MegaMenu {
}

$rootNav.addClass(ClassName.TRANSITIONING)
$(Selector.MEGAMENU).css('height', 'auto')

// make only visible elements focusable
$targetNav.find(Selector.NAV_LINK).attr({
Expand All @@ -304,7 +305,6 @@ class MegaMenu {
})
if (currentTranslatePercentage === -PERCENTAGE) {
// reset main collapse height
$(Selector.MEGAMENU).css('height', 'auto')
$rootNav.find('>.nav-item .nav-link').attr({
tabindex: 0,
'aria-hidden': false
Expand Down

0 comments on commit e3aea5e

Please sign in to comment.