Skip to content

Bug: Selection doesnt retain when text is selected from right to left #7736

@jvithlani

Description

@jvithlani

In lexical playground when the toggle for retain selection is turned on, and the text is selected from right to left and clicked on the toolbar the selection doesnt retain

Lexical version:

Steps To Reproduce

  1. Type 'hello world'
  2. Copy world right to left
  3. Click on toolbar, the selection is gone

Video:

Screen.Recording.2025-08-04.at.6.55.16.PM.mov

The current behavior

Selection doesnt retain

The expected behavior

Selection retains

Impact of fix

Its minor, but better UX

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