Skip to content

Bug: Nested list not remove when delete selection #8117

@Senasiko

Description

@Senasiko

Lexical version:
0.40.0

Steps To Reproduce

  1. Insert a list node with a nested list.
  2. Select the entire nested list and part of the parent list.
  3. Press Backspace to delete the selected content.
    The nested list is not fully removed; instead, it shifts forward.
    Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    listsRelates to Lexical Lists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions