Skip to content

Bug: Weird Backspace key behavior in nodes containing inputs #3488

Description

@hijhem

When I try to delete text in a node that contains an input element by hitting Backspace it ends up deleting text after the node. Playground does seem to have this issue too with Poll node.

Lexical version: 0.6.5

Steps To Reproduce

  1. Go to Lexical Playground
  2. Insert a Poll node and type in some poll options
  3. Put the cursor on the text after the inserted node
  4. Put the cursor back in one of the input options
  5. Try to delete characters with Backspace

Peek 2022-12-04 16-52

The current behavior

Characters are being deleted in text before or after the node

The expected behavior

Characters are being deleted in the input element

Metadata

Metadata

Assignees

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