lexical
lexical copied to clipboard
Bug: Selecting a line containing decorator node in the beginning and pressing `→` arrow key moves selection to the decorator node
Lexical version: 0.14.5
Steps To Reproduce (See screencast)
- On a new line, add an inline decorator node (e.g. Equation) and add some text after it.
- Set the selection right at the end of the node.
- Attempt to select the current line (using keyboard shortcut Cmd + Shift + ← on Mac)
- 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