Skip to content

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

Closed

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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