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

Fix various collaboration cursor bugs #3582

Merged
merged 1 commit into from
Dec 17, 2022
Merged

Conversation

trueadm
Copy link
Collaborator

@trueadm trueadm commented Dec 17, 2022

Fixes #3549 and probably a bunch of other bugs with collaboration cursors not working as expected. Turns out we were not assigning the correct position when selection was a type of element and furthermore, we weren't validating that this could happen, meaning it could potentially crash a client and cause the cursor to get stuck in the wrong place.

@vercel
Copy link

vercel bot commented Dec 17, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lexical ✅ Ready (Inspect) Visit Preview Dec 17, 2022 at 9:24PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview Dec 17, 2022 at 9:24PM (UTC)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 17, 2022
@trueadm trueadm merged commit 6991d4a into main Dec 17, 2022
@trueadm trueadm deleted the fix-cursor-selection-bugs branch December 17, 2022 22:48
@trueadm trueadm mentioned this pull request Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
3 participants