Close NavigationMenu, NodeActionMenu, and VersionHistoryMenu on outside click#184
Draft
Close NavigationMenu, NodeActionMenu, and VersionHistoryMenu on outside click#184
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 atz-index: 1049(sidebar is1050); clicking firesOnToggleClickedVersionHistoryMenu— same backdrop pattern; wrapped root element in<div class="version-history-container">to allow backdrop as siblingz-index: 999(dropdown is1000); addedCloseDropdown()method invoked on backdrop clickThe backdrop is transparent and covers the full viewport, so all clicks outside the menu's stacking layer are intercepted without visually obscuring the UI.