WordPress / gutenberg

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

Zoom Out: image block allows dropping files when dragging patterns #67200

Closed jartes closed 19 hours ago

jartes commented 20 hours ago

Description

Image blocks display the "Drop files to upload" message when we try to drop patterns over the block. Also, if we are dropping a pattern that has an image, the image block image is replaced by the image that is on the pattern.

Zoom Out should not allow editing content at block level, and in this case, the Zoomed Out version is allowing the Image Block to be replaced.

Step-by-step reproduction instructions

  1. Edit or create any post/page.
  2. Add an Image Block (this can be also a Media & Text block).
  3. Go to the patterns inserter and try to drag any pattern to the image block.
  4. See that the Image Block is displaying the "Drop files to upload" message.

Screenshots, screen recording, code snippet

(will add screen recording later as it's failing)

Environment info

No response

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

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

Please confirm which theme type you used for testing.

jartes commented 19 hours ago

Closing as this is already fixed by https://github.com/WordPress/gutenberg/pull/66986