Skip to content

Bug: Typing to a selection including TabNode and TextNode adds text to TabNode #7601

@AnssiCloubi

Description

@AnssiCloubi

Lexical version: 0.31.2

Steps To Reproduce

With Chrome:

  1. In Playground, press tab and type something
  2. Select the TabNode and the text after it and type something

With Firefox:

  1. In Playground, press tab twice and type something
  2. Select the second TabNode and the text after it and type something
tabBug.webm

The current behavior

  • Text is inserted into TabNode
  • Causes 'Error: Minified Lexical error 126', 'TabNode does not support setTextContent' when loading a saved data to editor with bad TabNode

The expected behavior

  • TabNode is replaced with TextNode

Impact of fix

  • Unknown

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions