Skip to content
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

Wrong focus management on top toolbar #50337

Closed
draganescu opened this issue May 4, 2023 · 0 comments · Fixed by #50497
Closed

Wrong focus management on top toolbar #50337

draganescu opened this issue May 4, 2023 · 0 comments · Fixed by #50497
Assignees
Labels
[Package] Block editor /packages/block-editor [Type] Bug An existing feature does not function as intended

Comments

@draganescu
Copy link
Contributor

Description

When using the top toolbar setting and then collapsing the top toolbar, the next block selection will be broken because focus is programatically moved to the collapse toolbar button.

Step-by-step reproduction instructions

  1. Set top toolbar using the dot menu in the top right corner
  2. Add 2 paragraphs of text
  3. Click in the 1st paragraph
  4. In the editor header click the collapse toolbar button
  5. Toolbar is collapsed
  6. Click the 2nd paragraph
  7. Notice bug - the focus is moved to the collapse toolbar button

Screenshots, screen recording, code snippet

top-toolbar-too-aggressive-focus.mp4

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment