Issue Overview
Image Block left in uploading state (pulsing) if 'Undo' clicked after upload.
Steps to Reproduce (for bugs)
- Add Image block
- Upload Image
- Click Undo
Expected Behavior
Undo will revert to Placeholder Image block
Current Behavior
Undo leaves image in the uploading state (pulsing).
Possible Solution
Don't use setAttributes for temporary block state. This also means that if the browser was to be closed during uploading (which might take a while for large images) then the image blob URL will be left in the post content.
Screenshots / Video

Related Issues and/or PRs
Todos
Issue Overview
Image Block left in uploading state (pulsing) if 'Undo' clicked after upload.
Steps to Reproduce (for bugs)
Expected Behavior
Undo will revert to Placeholder Image block
Current Behavior
Undo leaves image in the uploading state (pulsing).
Possible Solution
Don't use
setAttributesfor temporary block state. This also means that if the browser was to be closed during uploading (which might take a while for large images) then the image blob URL will be left in the post content.Screenshots / Video
Related Issues and/or PRs
Todos