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 Double Deletion on Backspace #5580

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

ivailop7
Copy link
Collaborator

@ivailop7 ivailop7 commented Feb 3, 2024

A couple of nodes didn't return true on backspace deletion, leading to deleting an extra node before them. I guess someone forgot the return true for one onDelete implementation in a node and then by virtue of copy-pasting the bug made its way to multiple nodes, most notably the 'Image', 'Horizontal Line' and 'Block With Alignable Contents'.

Fixes: #5249 and I believe #3707 was referring to this behaviour as well

Copy link

vercel bot commented Feb 3, 2024

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

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2024 7:46pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2024 7:46pm

@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 Feb 3, 2024
@ivailop7 ivailop7 merged commit b49170a into facebook:main Feb 4, 2024
41 of 45 checks passed
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
Development

Successfully merging this pull request may close these issues.

Bug: Issue deleting consecutive BlockWithAlignableContents.
3 participants