Skip to content

Close NavigationMenu, NodeActionMenu, and VersionHistoryMenu on outside click#184

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-kebab-meatball-hamburger-menus
Draft

Close NavigationMenu, NodeActionMenu, and VersionHistoryMenu on outside click#184
Copilot wants to merge 2 commits intomainfrom
copilot/fix-kebab-meatball-hamburger-menus

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

The three interactive menus (hamburger sidebar, kebab dropdown, version history sidebar) had no dismiss behavior when clicking outside — users had to explicitly click a close button or select an item.

Approach

Added a transparent fixed-position backdrop rendered behind each menu when open. Clicking the backdrop triggers the existing close logic. No JS interop required.

Changes

  • NavigationMenu — backdrop at z-index: 1049 (sidebar is 1050); clicking fires OnToggleClicked
  • VersionHistoryMenu — same backdrop pattern; wrapped root element in <div class="version-history-container"> to allow backdrop as sibling
  • NodeActionMenu — backdrop at z-index: 999 (dropdown is 1000); added CloseDropdown() method invoked on backdrop click
@if (IsOpen)
{
    <div class="sidebar-backdrop" @onclick="OnToggleClicked"></div>
}
<div class="sidebar-panel @(IsOpen ? "open" : "closed")">
    ...
</div>

The backdrop is transparent and covers the full viewport, so all clicks outside the menu's stacking layer are intercepted without visually obscuring the UI.

…cking outside

Agent-Logs-Url: https://github.com/VidetteMakes/MESS/sessions/3a065751-9fe3-47c1-a57d-a5fbe41e0dda

Co-authored-by: adamj537 <11276599+adamj537@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix kebab, meatball, hamburger menus not closing on click Close NavigationMenu, NodeActionMenu, and VersionHistoryMenu on outside click Apr 10, 2026
Copilot AI requested a review from adamj537 April 10, 2026 04:15
@adamj537 adamj537 requested a review from EyeBrawler April 10, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kebab, Meatball, Hamburger Menus Do Not Close Upon Clicking Off

2 participants