WordPress / gutenberg

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

Gallery Block removing empty image blocks on upload #39588

Open mchowning opened 2 years ago

mchowning commented 2 years ago

Description

On Android, upon completion of uploading a new image to a gallery block, all of the empty blocks in the gallery block are removed.

Step-by-step reproduction instructions

  1. Open a new post in WPAndroid. The issue does not occur on WPiOS.
  2. Add a gallery block.
  3. Add a new image block to the gallery using the gallery block's appended. The issue does not occur if you select one of the gallery's image blocks and use the block inserter to add an image block to the gallery.
  4. Choose an image from device for that image block The issue does not occur if you choose an image from the media library, the issue seems to occur when updating the image block after the image has successfully uploaded.
  5. Observe that all the empty image blocks have been removed.

Expected behaviour

The other empty image blocks in the gallery should be unaffected.

Actual behaviour

The other empty image blocks in the gallery are removed.

Screenshots or screen recording (optional)

https://user-images.githubusercontent.com/4656348/159050893-62f19b92-277f-4793-8789-de962fe415ae.mp4

WordPress information

Device information

hypest commented 2 years ago

On Android, when uploading

Looks like the description is cut off there @mchowning?

mchowning commented 2 years ago

Looks like the description is cut off

Thanks. I filled it in.

github-actions[bot] commented 2 years ago

Hi, This issue has gone 180 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

kathrynwp commented 2 years ago

@mchowning Hi! Could you please confirm that this is still an issue in the latest version of the app on Android? Thanks!

mchowning commented 2 years ago

I just reproduced this on WPAndroid 20.8-rc-2. I'll knock the priority down from normal to low though since this seems like an edge case that isn't really that bad.