Skip to content

Image Block: Undo includes pulsing state as an undo step #3553

@tg-ephox

Description

@tg-ephox

Issue Overview

Image Block left in uploading state (pulsing) if 'Undo' clicked after upload.

Steps to Reproduce (for bugs)

  1. Add Image block
  2. Upload Image
  3. 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

ezgif com-video-to-gif 6

Related Issues and/or PRs

Todos

  • Tests
  • Documentation

Metadata

Metadata

Assignees

Labels

[Feature] MediaAnything that impacts the experience of managing media[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions