Skip to content

fix(menubar): block mouse from child interactions - #4

Open
sectore wants to merge 1 commit into
wess:mainfrom
sectore:fix/menubar-cursor
Open

fix(menubar): block mouse from child interactions#4
sectore wants to merge 1 commit into
wess:mainfrom
sectore:fix/menubar-cursor

Conversation

@sectore

@sectore sectore commented Aug 23, 2026

Copy link
Copy Markdown

Just came across this issue by following guise's tutorial (it's great, btw).

By opening the MenuBar in the header, its dropdown receives mouse events from search input located below.

Before

Menubar closed. Input below.

guise-mb-closed-before

Menubar opened. Note the mouse cursor.

guise-mb-before

Fixed

Note the mouse cursor.

guise-mb-fixed

Fixed by using .occlude(). From gpui docs:

Block the mouse from all interactions with elements behind this element's hitbox.

From `gpui` docs: `.occlude()` -> Block the mouse from all interactions with elements behind this element's hitbox.
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.

1 participant