Lexical version:
0.40.0
Steps To Reproduce
- Insert a list node with a nested list.
- Select the entire nested list and part of the parent list.
- Press Backspace to delete the selected content.
The nested list is not fully removed; instead, it shifts forward.

Link to code example:
https://playground.lexical.dev/
The current behavior
The nested list is not removed
The expected behavior
The nested list is emoved
Impact of fix