Skip to content

[lexical] Bug Fix: When the editor starts with an empty list item, pressing ctrl+backspace (deleteWord) should replace the list with a paragraph#8220

Merged
etrepum merged 7 commits intofacebook:mainfrom
Jynx2004:new_issue
Mar 13, 2026

Conversation

@Jynx2004
Copy link
Copy Markdown
Contributor

Description

After pressing ctrl+backspace , now the empty list item will get deleted and will see a normal paragraph as expected .

Closes #8212

Test plan

Created a new unit test to check the deletion works.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment Mar 13, 2026 4:57pm
lexical-playground Ready Ready Preview, Comment Mar 13, 2026 4:57pm

Request Review

@meta-cla meta-cla 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 Mar 13, 2026
@Jynx2004 Jynx2004 changed the title lexical Fix: Editor containing only an empty list item, pressing ctrl+backspace will not turn that list item back into a normal paragraph [lexical] Fix: Editor containing only an empty list item, pressing ctrl+backspace will not turn that list item back into a normal paragraph Mar 13, 2026
…, change deleteWord collapsed strategy to be the same as deleteLine, add more tests
@etrepum etrepum changed the title [lexical] Fix: Editor containing only an empty list item, pressing ctrl+backspace will not turn that list item back into a normal paragraph [lexical] Bug Fix: When the editor starts with an empty list item, pressing ctrl+backspace (deleteWord) should replace the list with a paragraph Mar 13, 2026
@etrepum etrepum added this pull request to the merge queue Mar 13, 2026
Merged via the queue into facebook:main with commit 53a1dd5 Mar 13, 2026
34 checks passed
levensta pushed a commit to levensta/lexical that referenced this pull request Mar 13, 2026
…essing ctrl+backspace (deleteWord) should replace the list with a paragraph (facebook#8220)

Co-authored-by: Bob Ippolito <bob@redivi.com>
@etrepum etrepum mentioned this pull request Mar 19, 2026
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. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: In an editor containing only an empty list item, pressing ctrl+backspace will not turn that list item back into a normal paragraph

2 participants