You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Closed TopNavMegaMenu panel reopens when its invisible area is hovered #4785
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
Open a TopNavMegaMenu.
Close it.
Move the pointer through the area occupied by the closed panel.
Wait for the hover delay.
The menu reopens even though the trigger was not hovered.
This is reproducible in the current production deployment.
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.
Activity
imdreamrunner commentedon Aug 11, 2026
Close by #4555