Skip to content

fix(playground): persist bottom sheet collapsed state - #59

Merged
arpit-bruno merged 1 commit into
usebruno:mainfrom
sundram-bruno:fix/bru-4083-persist-collapsed-dock
Aug 25, 2026
Merged

fix(playground): persist bottom sheet collapsed state#59
arpit-bruno merged 1 commit into
usebruno:mainfrom
sundram-bruno:fix/bru-4083-persist-collapsed-dock

Conversation

@sundram-bruno

Copy link
Copy Markdown
Contributor

JIRA : BRU-4083

Problem

  • In the bottom view of the playground, collapsing the sheet and refreshing did not keep it collapsed. It reopened at the last persisted expanded height.
  • After dragging the bottom view to a custom height and collapsing it, clicking Try it reopened the sheet at the default 60% height instead of the persisted height, and also overwrote the persisted height with the default.

Solution

  • The collapsed state is now persisted in sessionStorage, so a refresh keeps the sheet collapsed. Expanding it afterwards restores the last expanded height.
  • Every expand path (the expand button and the Try it button) now restores the persisted height instead of the default, and the persisted height is no longer overwritten.

@sundram-bruno
sundram-bruno force-pushed the fix/bru-4083-persist-collapsed-dock branch from 56c5d14 to 86255d2 Compare August 24, 2026 18:31
@arpit-bruno
arpit-bruno merged commit 3486f1d into usebruno:main Aug 25, 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.

2 participants