close
Skip to content

RTC can cause an unsaved change to persist and cause data loss from the original post #76402

@johnbillion

Description

@johnbillion

Description

It appears that an unsaved change can become "sticky" in the editor and prevent a user from being able to edit a post at its currently published state.

When this happens it's not clear how I can return to editing the post at its currently published state, and it's also not clear that a modified version of the post is being edited as opposed to the original.

Step-by-step reproduction instructions

  1. Edit a published post
  2. Make a change but do not save it
  3. Navigate away (dismiss the browser confirmation as necessary)
  4. Navigate back to the editor for that post and observe that your change persists

Depending on how quickly you return to the editor you may see your own avatar position at the point where you made a change.

Screenshots, screen recording, code snippet

You can repeat the process and easily end up with several of your own avatars on the editing screen:

Image

Environment info

  • WordPress 7.0 beta 4

This can be reproduced on the make.wordpress.org sites too.

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] Real-time CollaborationPhase 3 of the Gutenberg roadmap around real-time collaboration[Type] BugAn existing feature does not function as intended

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions