Skip to content

Bug: The block cursor between ElementNodes does not delete the node #8939

Description

@levensta

Lexical version: 0.49 latest

Steps To Reproduce

  1. Insert two CardNode (shadow root ElementNode with slots) one after the other
  2. Place the cursor between the two cards
  3. Press Backspace

Link to code example

The current behavior

Cards near the block cursor cannot be deleted

block-cursor-near-cards.mov

The expected behavior

Pressing Backspace with the block cursor deletes the cards before or after it

Impact of fix

In situations where a block cursor is possible between or near an ElementNode, deletion should work the same way as with a DecoratorNode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions