Skip to content

[bug] Extended Toolbar dropdowns fade before they can be clicked #1970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
drfarrell opened this issue May 30, 2025 · 1 comment
Open

[bug] Extended Toolbar dropdowns fade before they can be clicked #1970

drfarrell opened this issue May 30, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@drfarrell
Copy link
Collaborator

Describe the bug

When the toolbar is condensed and a dropdown is clicked, the dropdown fades away because the extended toolbar it came from fades away

Image

@drfarrell drfarrell added the bug Something isn't working label May 30, 2025
@ZenticaDev
Copy link

Thanks for reporting this — I’ve been able to reproduce the issue consistently.

Problem:
When the toolbar is condensed, clicking on a dropdown item like Albert Sans or Light causes the extended toolbar (and its dropdown) to fade away before the user can interact with it. This seems to be a focus/blur or event propagation issue, where the toolbar unmounts as soon as the dropdown is clicked.

Expected Behavior:
Clicking a dropdown should preserve the visibility of the extended toolbar and allow interaction with nested dropdown options.

Suggested Fixes:

  • Use onPointerDown instead of onClick for dropdown buttons to ensure pointer event registers before focus shifts.
  • Defer the teardown logic using requestAnimationFrame or setTimeout to let nested dropdowns mount before the toolbar closes.
  • In the blur or dismiss logic, check if event.relatedTarget is still within the toolbar or dropdown container before triggering close.
  • (Optional) Use a focus scope or interaction manager (FocusScope, etc.) to keep toolbar open when focus moves within it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants