Fix #255: clone menu outside-click close #265
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!265
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-255"
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?
Fixes #255.\n\nCloneMenu (web/src/pages/Repo.jsx) had an Escape handler but no document-level outside-click handler. This adds the standard close mirroring the TasksOverlay/RefPicker onDoc pattern: document click listener sets root.open=false when the target is outside the
trigger lives inside root so its native toggle never fights the handler; Esc + focus-return unchanged.\n\nNotificationTray shared the same Esc-only gap (verified while in the file) and gets the same close in this change: bell + dropdown wrapped in a root ref, outside clicks setOpen(false), listener removed in onCleanup.\n\nTests: new web/test/unit/clone-outside-close.test.js (4 tests, source-pinning per repo convention); full web suite 522/522 green excluding smoke.test.js, which hangs identically on pristine main (needs a live server; loopback blocked in this env). No new deps. Dark + light N/A (behavior-only). Browser check open (shared daemon blocks loopback; close verified by code reasoning: handler fires only for targets outside root, trigger inside root).