Skip to content

Bug: Backspace at start of heading #4359

@affvalente

Description

@affvalente

When pressing backspace at the start of heading, Lexical deletes the prior line as expected but resets the note to paragraph

Paragraph

## Heading
Paragraph

In this text, if the cursor is placed just left of the "H" and I hit backspace, this becomes

Paragraph
Paragraph
Paragraph

Was able to replicate in the playground on windows+chrome

Desired behaviour: delete the prior empty line to achieve

Paragraph
## Heading
Paragraph

Edit for clarity

Metadata

Metadata

Assignees

No one assigned

    Labels

    all-platforms-bugcoreReconciler, DOM, Selection, Node, Events, Composition

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions