Skip to content

fix(docs): apply env change from inline playground sidebar - #50

Merged
arpit-bruno merged 1 commit into
usebruno:mainfrom
sundram-bruno:fix/playground-inline-env-switcher
Aug 17, 2026
Merged

fix(docs): apply env change from inline playground sidebar#50
arpit-bruno merged 1 commit into
usebruno:mainfrom
sundram-bruno:fix/playground-inline-env-switcher

Conversation

@sundram-bruno

@sundram-bruno sundram-bruno commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

JIRA: BRU-4330

Problem

In the playground's inline (docked-right) layout, picking a different environment from the sidebar's env switcher did nothing the menu closed and the active environment stayed the same.

Solution

Inline view of playground now changes env properly.

Tippy portals the env switcher menu to <body>, so pressing a menu item
counted as a click outside the inline dock's sidebar overlay: the
overlay closed on pointerdown, unmounting the menu before its click
could dispatch the environment change. Ignore [data-tippy-root] in the
sidebar's outside-click handler, matching MenuDropdown's own guard.
@arpit-bruno
arpit-bruno merged commit 560b2cf into usebruno:main Aug 17, 2026
2 checks passed
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.

3 participants