facebook / facebook/lexical

Bug: Mobile error cursor jumps to start line

Open
#4,207 5 comments 0 reactions 0 assignees View on GitHub
android-bug core
Dominant language
TypeScript
Stars
23.9k
Forks
2.2k
Avg merge
1d 14h
Merged PRs (30d)
55

Description

Hey there 👋🏽

When I click in the end of a word/line, the cursor jumps to the beginning of it

This may be related to this one https://github.com/facebook/lexical/issues/3538

Here is an example with the lexical playground

https://user-images.githubusercontent.com/31936665/227817927-b3d3ec6c-2b49-4341-adf3-1cce9481ac85.mp4

Lexical version: locally version `"lexical": "0.7.6"` although it is also happening on the latest version as of the moment I am writing this 😉

## Steps To Reproduce

1. on Mobile write some text
2. then click like if you want to continue writing in the end on a line
3. you will be jumped to the beginning of the line

Link to code example: https://playground.lexical.dev/

## The current behavior

When I click in the end of a word/line, the cursor jumps to the beginning of it

## The expected behavior

When I click in the end of a word/line, the cursor should be in the end of the word/line

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.