-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Open
Labels
[Block] GalleryAffects the Gallery Block - used to display groups of imagesAffects the Gallery Block - used to display groups of images[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
In the Editor we allow blocks to transform, i.e. an image block can change into a gallery by adding another image into the block, and the reverse should be possible or at least avoiding blocking actions.
When you have moved all images out of a gallery block, the block stays as a Gallery, and you are able to add images in through upload or selection, but dragging an image does not result in it becoming part of the gallery.
Note: this does not appear related to the latest changes Drag and drop – Move block instead of drag chip as it is reproducible before this change.
Step-by-step reproduction instructions
- Create a gallery block with several images within it
- Drag the images out of the gallery block, elsewhere within the content
- Once there are no images within the gallery, the default gallery block is shown, allowing upload or selecting images from media library
- Attempt to drag an image into the block, and no action occurs.
Screenshots, screen recording, code snippet
screen-recording.mov
Environment info
- trunk WP, with Gutenberg 21.9.0, MacOS, Chrome
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
dhruvikpatel18
Metadata
Metadata
Assignees
Labels
[Block] GalleryAffects the Gallery Block - used to display groups of imagesAffects the Gallery Block - used to display groups of images[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended