Skip to content

Bug: Selection movement incorrect for RTL exiting decorator node #7771

@noamzaks

Description

@noamzaks
Screen.Recording.2025-08-23.at.19.37.13.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.
  3. Try to move the cursor from the start to the end or vice versa.

The current behavior

When the decorator node is selected and the right/left arrow key is pressed, the selection is always moved before/after.

The expected behavior

If the paragraph is RTL and the right arrow key is pressed, the selection should move before instead of after, and the same being said for the left arrow key.

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