Gutenberg: A caption added to the Image block before the image is fully uploaded will be lost

Created on 25 Jul 2019  路  5Comments  路  Source: WordPress/gutenberg

Describe the bug
Gutenberg's UI allows users to start writing a caption on block images while the image is still being uploaded but, once the upload is complete, the block will refresh and the content of the caption will be lost.

To reproduce
Steps to reproduce the behavior:

  1. Start writing a new post
  2. Add an image block and upload an image
  3. Add .amption to the image block while the image is still being uploaded
  4. When the upload is complete the caption will disappear.

Expected behavior
I would expect the caption to NOT go away just by the fact the the image has completed its upload. I would rather be blocked from writing the caption and forced to wait than writing it an having it just disappear without any notice or (apparent) reason.

Screenshots
Screen Capture on 2019-07-25 at 08-11-27
Link to GIF: https://cld.wthms.co/PjrEgt

Additional context

  • Gutenebreg version 6.1.1
[Block] Image [Feature] Media [Type] Bug

Most helpful comment

@swissspidy possibly thinking of this? https://github.com/WordPress/gutenberg/pull/16051? Seems like the same issue but with the alt text instead of the caption. A similar solution could probably be implemented for captions.

All 5 comments

Hmm I could swear there was an issue/PR for this somewhere already.

I looked it up but I could not find it.

@swissspidy possibly thinking of this? https://github.com/WordPress/gutenberg/pull/16051? Seems like the same issue but with the alt text instead of the caption. A similar solution could probably be implemented for captions.

Looks like @jorgefilipecosta updated #16051 to fix this as well and recently merged, marking as closed.

This issue had been solved but I am seeing it just resurfaced when using Gutenberg 8.3.0 (this is not happening with the current core version of the block editor)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ellatrix picture ellatrix  路  3Comments

davidsword picture davidsword  路  3Comments

youknowriad picture youknowriad  路  3Comments

franz-josef-kaiser picture franz-josef-kaiser  路  3Comments

cr101 picture cr101  路  3Comments