Skip to content

Fix workspace menu closing when cursor crosses trigger-to-content gap#4680

Open
jurgenwerk wants to merge 1 commit intomainfrom
fix/workspace-menu-autoclose
Open

Fix workspace menu closing when cursor crosses trigger-to-content gap#4680
jurgenwerk wants to merge 1 commit intomainfrom
fix/workspace-menu-autoclose

Conversation

@jurgenwerk
Copy link
Copy Markdown
Contributor

@jurgenwerk jurgenwerk commented May 6, 2026

As a person who deletes his workspaces a lot, this has been driving me crazy 😀

Screen.Recording.2026-05-06.at.12.47.26.mov

The fix is to simply remove the auto close functionality. I don't think it's useful anyway - it will still close if you open another contextual menu.

The workspace card's three-dot menu used @autoclose on BoxelDropdown,
which closes on any mouseleave of the content. Combined with the
content's slide-in animation (translateY -20px → 0), the menu would
animate into and out from under the cursor as the user moved between
the trigger and the final menu position, firing mouseleave before the
menu finished appearing and dismissing it.

For a click-opened menu, click-outside and item-click are sufficient
to close — autoClose is a hover-menu pattern that doesn't fit here.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

Preview deployments

Host Test Results

    1 files      1 suites   2h 3m 46s ⏱️
2 565 tests 2 550 ✅ 15 💤 0 ❌
2 584 runs  2 569 ✅ 15 💤 0 ❌

Results for commit 98aa358.

Realm Server Test Results

    1 files      1 suites   16m 24s ⏱️
1 256 tests 1 256 ✅ 0 💤 0 ❌
1 334 runs  1 334 ✅ 0 💤 0 ❌

Results for commit 98aa358.

@jurgenwerk jurgenwerk requested a review from a team May 6, 2026 10:59
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.

2 participants