Skip to content

Restoring a revision using Visual Revisions or saving a post with meta blocks leaves the editor in a dirty state #77610

@karthikeya-io

Description

@karthikeya-io

Description

When restoring a visual revision or saving a post that includes meta blocks such as the Footnotes block, the editor remains in a dirty state even after the post is saved. Attempting to refresh the page or navigate away triggers the warning: "Changes that you made may not be saved."

Step-by-step reproduction instructions

Restoring Revisions

  1. Open a page or post with revisions.
  2. Restore the post to an older revision using Visual Revisions.
  3. Try going back or refreshing the page.
  4. Notice the warning: Changes that you made may not be saved.
revisions.mov

Saving Posts with Meta Blocks

  1. Create a page or post.
  2. Add Footnotes to some text.
  3. Save the post.
  4. Try going back or refreshing the page.
  5. Notice the warning: Changes that you made may not be saved.
meta_block.mov

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] HistoryHistory, undo, redo, revisions, autosave.[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions