Skip to content

[Bug] Closed TopNavMegaMenu panel reopens when its invisible area is hovered #4785

Closed

Description

@imdreamrunner

Description

While a TopNavMegaMenu is closed, hovering its invisible panel area can reopen it without hovering the trigger.

The closed panel remains hit-testable and uses the same onMouseEnter handler as the trigger. Entering it schedules popover.show() again, creating an invisible “ghost” hover area.

Expected: only hovering or activating the trigger should open a closed mega menu.

Reproduction

  1. Open a TopNavMegaMenu.
  2. Close it.
  3. Move the pointer through the area occupied by the closed panel.
  4. Wait for the hover delay.
  5. The menu reopens even though the trigger was not hovered.

This is reproducible in the current production deployment.

Astryx Version

@astryxdesign/[email protected]

Environment

Chrome, macOS

Additional context

Production binds the same show-scheduling onMouseEnter handler to both the trigger and panel.

PR #4555 already addresses this by separating the handlers:

  • Trigger hover may schedule opening.
  • Panel hover only cancels a pending close and cannot reopen a closed panel.

The closed popover should also use display: none, switching to display: flex only under :popover-open, so its invisible area cannot participate in hit-testing.

Related: #3121
Fix in progress: #4555

Activity

  1. added
    bug
    on Aug 7, 2026
  2. imdreamrunner commented on Aug 11, 2026

    @imdreamrunner
    ContributorAuthor

    Close by #4555

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions