-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[lexical-yjs] Bug fix: Fix cursor position after undo in collab mode #6070
[lexical-yjs] Bug fix: Fix cursor position after undo in collab mode #6070
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fantactuka @StyleT @bencarletonn @ebads67 could you guys have a look as well. LGTM to me.
@KatsiarynaDzibrova you would need to fix the warns as per the new eslint rule for integrity to pass |
Fixed it |
Awesome work! |
oh, you steal my work?😢 |
it is almost same with my code. if you want to use, you should mention me because it is my contribution.. |
Closes: #6010, #4846
The current logic uses previous selection for calculating new cursor position, which does not work correctly, if the last action includes adding new text.
Test plan
Before
After