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

[WP 6.4.1] images can't be corrected selected as Gutenberg block after linking to media #56017

Closed
Dzhami-Jame-ALI opened this issue Nov 9, 2023 · 3 comments · Fixed by #56043
Assignees
Labels
[Block] Image Affects the Image Block Needs Testing Needs further testing to be confirmed. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@Dzhami-Jame-ALI
Copy link

Description

Images can't be corrected selected as Gutenberg block after linking to media. This appears after wp 6.4.

Step-by-step reproduction instructions

  1. Create an image in Gutenberg editor
  2. Click the image: currently the image can be selected as a Gutenberg block, and blue selection border appears.
  3. Link the image to its media file
  4. Click the image again: currently the image cannot be selected as a Gutenberg block, and blue selection border disappears (need to press Up Arrow key to restore it).

Screenshots, screen recording, code snippet

No response

Environment info

New installed WP 6.4.1 in docker, without any other plugins or themes
Chrome
macOS Sonoma

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

@Dzhami-Jame-ALI Dzhami-Jame-ALI added the [Type] Bug An existing feature does not function as intended label Nov 9, 2023
@jordesign jordesign added Needs Testing Needs further testing to be confirmed. [Block] Image Affects the Image Block labels Nov 9, 2023
@jordesign
Copy link
Contributor

Hi @Dzhami-Jame-ALI - I'm having trouble recreating this issue. Are you able to share a screencast of it happening to have a better idea of what is going on?

@Dzhami-Jame-ALI
Copy link
Author

Hi @jordesign - I am posting the screen recording here:

1_mute.mp4

@t-hamano
Copy link
Contributor

Thanks for the report. I was able to replicate it.

Indeed, the image block is not selected correctly. When I select an image, the blue outline does not appear. The block is not inserted when I press the Enter key. I cannot delete the block even if I press the Delete key.

I think this issue is related to #55470. Because it appears to be disabling the click.

#55470 was shipped in WP6.4, so this issue should occur in WP6.4 and later. I think this is an issue that should be resolved in a minor release, so I'll add it to the " WordPress 6.4 Editor Tasks" board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block Needs Testing Needs further testing to be confirmed. [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants