Skip to content

Bug: Cannot place cursor at the end of the line (Safari) #4487

@sodenn

Description

@sodenn

Lexical version: 0.10.0

Steps To Reproduce

  1. Open Lexical Playground in Safari
  2. Add an example image
  3. Try to place the cursor at the end of the line

The current behavior

The cursor seems to be placed at the wrong position when the last node is a DecoratorNode. This happens only in Safari.
This is a bit confusing, because only when the user starts typing the text is inserted at the correct position.

2023-05-11 22 41 09

The expected behavior

The cursor should be placed at the end of the line.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions