Skip to content

Bug: Incorrect behavior when pressing Enter on a link #8126

@trinhvinhtruong96

Description

@trinhvinhtruong96

Lexical version:
v0.40.0

Steps To Reproduce

  1. Go to https://playground.lexical.dev/
  2. Click clear and type "https://playground.lexical.dev playground"
  3. Move the caret to the middle of the link and hit enter (or shift-enter)

see:

screen-capture.26.webm

Link to code example:

The current behavior

The text after the caret moves to a new line, but it doesn't keep the original order.

The expected behavior

The text after the caret moves to a new line, and it keep the original order.

Impact of fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    hyperlinksRelates to Lexical Links

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions