Directory

Image Cropping via Block Toolbar doesn't work when Image is a Link (cannot drag) · Issue #60081 · WordPress/gutenberg · GitHub
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

Image Cropping via Block Toolbar doesn't work when Image is a Link (cannot drag) #60081

Closed
MadtownLems opened this issue Mar 21, 2024 · 1 comment · Fixed by #60305
Closed
Labels
[Block] Image Affects the Image Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@MadtownLems
Copy link

Description

When an Image block has a link set (whether custom URL or to Media File), the Block Toolbar's cropping tools don't work as expected. You cannot drag them to crop to a desired area. (though the Zoom does work). Video attached.

I have confirmed this behavior on 6.4.3 & 6.5-RC-3 (with and without Gutenberg 17.9)

Step-by-step reproduction instructions

  1. Insert an Image Block
  2. Make the image link to something (this may or may not be the case by default, depending on your value of 'image_default_link_type' in wp_options
  3. Try to crop it using the toolbar, making sure to try dragging to find a different center point.

Note that you cannot drag the cropper.

  1. Remove the link and try to crop again.
  2. See that you can now crop as expected.

Screenshots, screen recording, code snippet

video1077925610.mp4

Environment info

WP 6.4.3 and 6.5-RC-3. With and without Gutenberg 17.9. Twenty Twenty Four Theme (among others)

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

@MadtownLems MadtownLems added the [Type] Bug An existing feature does not function as intended label Mar 21, 2024
@ndiego ndiego added the [Block] Image Affects the Image Block label Mar 21, 2024
@ndiego
Copy link
Member

ndiego commented Mar 21, 2024

Yup, I can confirm as well.

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 [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants