facebook / facebook/lexical

Bug: Multiline list items have all but first line deleted on backspace next to checkbox.

Open
#4,835 0 comments 0 reactions 0 assignees View on GitHub
lists
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

Lexical version:
0.11.3 - reproducible in playground

## Steps To Reproduce

1. Copy some text with newlines (e.i. "shift + enter) into the clipboard
2. Create a checkbox and indent it
3. Paste from the clipboard into the indented checkbox line
4. Hit backspace at the start of the checkbox line

Link to code example: https://playground.lexical.dev/

## The current behavior
All lines after the first line in the multiline list item will be deleted

## The expected behavior
The checkbox will either outdent or be deleted

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.