Skip to content

Bug: Selection movement incorrect for RTL going back from last node in paragraph #7775

@noamzaks

Description

@noamzaks
Screen.Recording.2025-08-25.at.14.04.50.mov

Lexical version: v0.34.0

Steps To Reproduce

  1. Write a right-to-left paragraph.
  2. Insert some decorator node, e.g. a date node, at the end of the paragraph.
  3. Try to move right from the end of the paragraph - the date node focus is skipped

The current behavior

The selection skips the focus node, in fact, going in the opposite direction focuses it (in our case, at the end of the RTL paragraph, pressing the left arrow).

The expected behavior

The focus should be on the date time element.

Impact of fix

RTL users.

Metadata

Metadata

Assignees

No one assigned

    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