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

Cursor not in right position when in empty line in a code block. #119

Open
2 tasks done
Saul-Mirone opened this issue Jun 1, 2022 · 0 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@Saul-Mirone
Copy link
Contributor

Saul-Mirone commented Jun 1, 2022

Please save me some time and use the following template. In 90% of all issues I can't reproduce the problem because I don't know what exactly you are doing, in which environment, or which y-* version is responsible. Just use the following template even if you think the problem is obvious.

Checklist

Describe the bug
Now I have client A and client B.

  1. When I move both client A's cursor in a newline in a codeblock.
  2. Now I cannot move client B's cursor at that new line.
  3. Then I switch back to client A, I find the position of the cursor is not right and I cannot move it to that new line.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/Saul-Mirone/prosemirror-yjs-bug-reproduce
  2. Clone the repo
  3. Run pnpm install && pnpm dev
  4. See error

Expected behavior
Cursor at right position.

Screenshots
If applicable, add screenshots to help explain your problem.

Screen.Recording.2022-06-01.at.23.04.50.mov

Environment Information

  • Chrome 102
  • Latest Yjs
@Saul-Mirone Saul-Mirone added the bug Something isn't working label Jun 1, 2022
@Saul-Mirone Saul-Mirone changed the title Cursor not in right position when in last empty line in a code block. Cursor not in right position when in empty line in a code block. Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants