Skip to content

fix(browser): hide the native browser view while dropdowns and menus are open - #272

Open
shfunc wants to merge 1 commit into
cabinetai:mainfrom
shfunc:fix/popups-under-browser-view
Open

fix(browser): hide the native browser view while dropdowns and menus are open#272
shfunc wants to merge 1 commit into
cabinetai:mainfrom
shfunc:fix/popups-under-browser-view

Conversation

@shfunc

@shfunc shfunc commented Aug 15, 2026

Copy link
Copy Markdown

Dropdowns, selects, and context menus opened near the in-app browser render underneath the webpage, so their options are unreachable. The browse pane is a native WebContentsView that composites above the entire DOM; no z-index can fix this.

Dialogs already work around it by hiding the view while open (browser-view.tsx). This does the same for popups: a counter in the app store, bumped by a tiny null component mounted inside the popup portals (portal children only mount while open), and the browser view hides while it's > 0.

Tradeoff: the page goes blank while a menu is open, same as the existing dialog behavior. Tooltips are intentionally excluded to avoid hover flicker.

@shfunc
shfunc requested a review from a team as a code owner August 15, 2026 22:39
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