WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.32k stars 4.12k forks source link

Select mode: If text is selected when entering, you can't select other blocks #62621

Open jasmussen opened 2 months ago

jasmussen commented 2 months ago

Description

If you've first selected text, then press Escape to enter select mode, you can't select other blocks. When you try, focus goes back to the block with the selected text.

Step-by-step reproduction instructions

  1. Go to the site editor
  2. Select some text in a block, can be a heading.
  3. Press Esc to enter select mode
  4. Try to click another block.

Focus moves back to the block that has selected text. I would expect the selection to disappear and the new block be selected.

Screenshots, screen recording, code snippet

select mode

Environment info

Nighty WordPress, trunk Gutenberg.

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

Mamaduka commented 2 months ago

I wonder if this has the same cause as my issue #58788.