fix(ui): keep sidebar user dropdown open#2450
Conversation
|
@claude review |
|
Claude finished @malinskibeniamin's task in 3m 35s —— View job Claude PR Review
The fix's core idea — collapsing the Popup wrapper and the visible content into a single rendered element via the function-form 🟠 Close animation is silently brokenBy removing the inner
Options:
I'd recommend option 1 unless the close animation is wanted back. 🟠 Dead
|
fc0e056 to
eb93029
Compare
|
@claude review |
|
Claude finished @malinskibeniamin's task in 2m 12s —— View job Claude PR Review
Most of the issues from the previous review pass have been addressed (the dead 🟡
|
There was a problem hiding this comment.
This is a big change, maybe there is an easier way to get this resolved, basically when you open a user menu dropdown in the sidebar of console, it will sometimes not allow you to interact with the component because it keeps closing as soon as it loses focus
What
Fix Base UI dropdown content rendering so the sidebar user menu stays open and usable. @SpicyPete
Why
The visible dropdown content was nested inside the Base UI popup element, so focus and menu behavior were attached to a wrapper instead of the rendered menu surface.
How
Render the visible dropdown surface directly through Base UI's
Popup.render, preserving Base UI props, role, focus handling, and Radix-compatible state attributes on the same element.Acceptance Criteria
data-statestyling compatibility.Testing Steps
bun run type:checkbun run lint:check(reports existing repo-wide restricted-import/unused-suppression issues; exit 0)bun run test