Skip to content

Drilldown _hideAll does not work in 6.7.x #12308

@driskell

Description

@driskell

What should happen?

When calling $element.foundation('_hideAll') on a Drilldown which is currently in a submenu should restore it to the root.

What happens instead?

The Drilldown menu disappears

Possible Solution

I believe a regression in #12038 caused this - as it adds new invisible classes to aid in keyboard navigation. However, the invisible class added to the root menu is not removed in a call to _hideAll, and so the submenu is hidden and the root menu never re-appears.

Test Case and/or Steps to Reproduce (for bugs)

Test Case on 6.7.3: https://codepen.io/Driskell/pen/oNeoJpa
Compare to 6.6.3 which works: https://codepen.io/Driskell/pen/NWvwmxW

Context

N/A

Your Environment

  • Foundation version(s) used: 6.7.3
  • Browser(s) name and version(s): Chrome 95 but also present in all other browsers
  • Device, Operating System and version: macOS Monterey
  • Link to your project: N/A

Checklist

  • I have read and follow the CONTRIBUTING.md document.
  • There are no other issues similar to this one.
  • The issue title and template are correctly filled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions