Skip to content

Image may disappear when cropping #68668

@stokesman

Description

@stokesman

Description

The Image block may disappear when attempting to crop it in a few scenarios:

  • It is inside a Row or Stack and has no size specified
  • It is aligned left/center/right and has no size specified

Step-by-step reproduction instructions

Aligned images

  1. Insert an image
  2. Select local media for the Image
  3. Align the image left, right or center
  4. Press "Crop" from the block toolbar

Inside Row / Stack

  1. Insert a Row / Stack
  2. Insert an Image within the Row / Stack
  3. Select local media for the Image
  4. Press "Crop" from the block toolbar

Screenshots, screen recording, code snippet

image-disappears-when-edited-in-flex.mp4

Environment info

  • WP 6.7.1 / Gutenberg plugin trunk
  • Firefox / Chrome
  • MacOS

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ImageAffects the Image Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions