lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: Selecting a line containing decorator node in the beginning and pressing `→` arrow key moves selection to the decorator node

Open nimeshnayaju opened this issue 9 months ago • 0 comments

Lexical version: 0.14.5

Steps To Reproduce (See screencast)

  1. On a new line, add an inline decorator node (e.g. Equation) and add some text after it.
  2. Set the selection right at the end of the node.
  3. Attempt to select the current line (using keyboard shortcut Cmd + Shift + on Mac)
  4. Attempt to go to the end of line (using keyboard shortcut )

Expected behavior

Selection should move to the end of the line.

Actual behavior

Selection moves to the decorator node.

https://github.com/facebook/lexical/assets/35807215/43a9da24-0e05-4f19-872a-ca5cf9cd9333

nimeshnayaju avatar May 08 '24 19:05 nimeshnayaju