Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Cursor jump to the end of the document when a collaborator deletes focusing paragraph #5974

Open
matsuyama-k1 opened this issue Apr 27, 2024 · 2 comments

Comments

@matsuyama-k1
Copy link
Contributor

matsuyama-k1 commented Apr 27, 2024

Lexical version: 0.14.5

Steps To Reproduce

  1. Launch the Playground in collaboration mode
  2. Open two windows (A and B)
  3. In window A, select a line
  4. In window B, delete the line that is selected in window A
  5. The focus in window A moves to the end of the document

The current behavior

In the video, cursor in the right window jump to the end of the document when the paragraph is deleted from the left window.
This issue forces the cursor to the end of the editor during collaborative editing, which disrupts smooth editing experience.

Screen.Recording.2024-04-27.at.12.05.03.mov

The expected behavior

The cursor should not move to the end of the document when the collaborator deletes focusing paragraph.

@matsuyama-k1
Copy link
Contributor Author

matsuyama-k1 commented Apr 27, 2024

I already have a solution

@ivailop7
Copy link
Collaborator

Nice find!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants