mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8708] [MERGED] fix(client): re-clicking a menu's trigger button closes the menu #8759
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8759
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8708
Author: @Gunterlie
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/context-menu-reclick-closes📝 Commits (3)
faeb1b2fix(client): re-clicking a menu's trigger button closes the menu1287fa6fix(client): keyboard opens and non-primary presses no longer affect the click swallow37b9400Merge branch 'staging' into fix/context-menu-reclick-closes📊 Changes
1 file changed (+36 additions, -1 deletions)
View changed files
📝
packages/client/src/components/ui/ContextMenu.tsx(+36 -1)📄 Description
Why
In the Connections sidebar and nearby, clicking the "⋯" button that opened a menu did not close it.
ContextMenucloses on an outsidemousedown. The trigger button is outside the menu, so the press closed it, and the button's followingclickreopened it at once.No linked issue: small bugfix reported directly by the maintainer.
What changed
packages/client/src/components/ui/ContextMenu.tsxonly.pointerdownlistener records the button under the last left press.click(one-shot capture listener, removed on the nextpointerdownif no click arrives).Menus covered
Every
ContextMenuuser: connection rows, group/folder menus, picture menu, built-in model card, and other app menus. Not affected (they already exclude their own button): ModelPicker, QuickConnectionSwitcher, QuickPersonaSwitcher, HelpTooltip, ChatSidebar status menu.Validation
pnpm checkpassed locally.autoFocus). Dismissed:autoFocusis not a keyboard signal; its only caller (AgentCatalogView) passes it always, so the change would disable the fix for pointer opens there.Manual verification (unchecked)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.