Mobile: Broken Undo/Redo Behaviour after Setting Featured Image via Image Block #32937
Labels
[Block] Image
Affects the Image Block
[Feature] History
History, undo, redo, revisions, autosave.
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
[Package] Block library
/packages/block-library
[Priority] Low
Used to indicate that the issue at hand isn't a top priority to address and can be handled later
[Type] Bug
An existing feature does not function as intended
Description
The undo/redo functionality doesn't work as expected after setting a featured image via the image block.
After setting a featured image via the block and then tapping undo, it appears as though the action has successfullye reverted, as the Featured banner is removed from the block. However, the image still remains as the post's featured image.
Step-by-step reproduction instructions
Expected behaviour
I would expect the image to be removed as the post's featured image after tapping the undo button.
Actual behaviour
The Featured banner is removed from the image after tapping undo, which gives the illusion that it's been removed as the post's featured image. However, navigating to the Post Settings (by tapping the three dots to the upper right of the editor) reveals that the image hasn't been removed as the featured image.
The fact that the Featured banner is removed from the block adds a further layer of confusion to the undo functionality not working.
Screenshots or screen recording (optional)
You'll see from the following screen recording that the undo button appears to revert the featured image change, due to the Featured banner changing, but the post's featured image isn't actually changed:
Screen.Recording.2021-06-23.at.19.13.14.mov
Device information
The text was updated successfully, but these errors were encountered: