Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

handleNavMouseout logic faulty #8

@readeral

Description

@readeral

Hi George,

An active dropdown activated by mouseover is only hiding if you move to another top-level-menu item.

If you are hovering over a dropdown menu, and then try to move sideways into blank space outside the dropdown, the final call of handleNavMouseout() function will always have event.target.tagName equal to 'C-DRILLDOWN-NAVIGATION-LIST' and so doClose will always equal 'false'.

This means the only way to close the menu item is to move to another menu item (in which case event.target.role is 'menuitem' and the doClose condition is true) or through the _outsideClickListener event listener.

This is fine for when it's not mouse-over activation, you'd expect to need to click away to close the menu, but with mouseover, I can't imagine a majority of users will expect this behaviour.

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