Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor keeps jumping to unexpected position and number is being replaced with unexpected text. #4954

Closed
antonbakinowsky opened this issue Apr 20, 2022 · 2 comments
Labels

Comments

@antonbakinowsky
Copy link

Description
Cursor jumps on wrong position when typing special symbols or numbers together ( (, +, 7 on the video).

  • from 27 sec in the video - when typing (+7 then it changes to ((+ and cursor is moved to after first bracket. It is difficult to see in the video so i gif where i pause/unpause to caught the issue
    slate-seven-replaced-with-bracket
  • from 46 sec in the video - after typing 7 i press enter to move on the next line. Cursor have been moved to next line but 7 from prev line was deleted. Also attach gif with slower repro.
    slate-seven-is-deleted-after-moving-to-next-line
  • from 50 sec typing hello 7 is chnaged to hhello and cursor is placed after first h
  • from 53 sec manually moving cursor to the end of the line moved cursor back to is prev position

Recording

slate.-.broken.cursor.mp4

Sandbox
https://www.slatejs.org/examples/richtext

Steps
Introduced in the video and gifs above.

Expectation
Typing 7 is not replaced with something else. Moving cursor to the end of the line actually moves cursor there instead of returning it back to its prev position.

Environment

  • Slate Version: from slate.js examples
  • Operating System: Android 12
  • Browser: Chrome 100.0.4896.127
@TrySpace
Copy link

I have similar issues with android input, especially when typing quickly.

For example typing Enter will often revert the cursor to the last position. Or sometimes pressing Enter will unfocus the editor/hide the keyboard...

@antonbakinowsky
Copy link
Author

fixed by #4988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants