-
-
Notifications
You must be signed in to change notification settings - Fork 34
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 is being reset to the start of document #231
Comments
2024-10-10.14.32.58.mp4I can’t reproduce your issue in Chrome. |
I'm talking about the same thing, I can't reproduce the problem in codesandbox either, but it appears when this project is run locally through the code editor. (I tried creating a project through create react app and adding markdown editor component to it, removing all styles - the problem appeared there.) |
I came across this error before on my local machine, think it has to something to do with For my use case, because I was intending to do an autosave function 500ms after the user stops typing, I used a Here is a codesandbox snippet, adapted from yours: https://codesandbox.io/p/sandbox/bold-rhodes-y6gflx |
The cursor resets to the beginning of the document when you try to enter text chaotically and quickly. This problem also occurs if you type two characters at the same time.
I tried to reproduce the problem in codesandbox https://codesandbox.io/p/sandbox/zp9j4s but it is not reproduced there: only locally.
The project I am running locally that is experiencing this problem is a copy of the project on codesandbox. There are no additional dependencies or styles.
Also the problem only appears in Chrome (Safari and Firefox have no problem)
Chrome version 129.0.6668.59
What could be the problem? Could this be a codemirror problem? I will be grateful for any help
2024-10-09.17.49.58.mov
The text was updated successfully, but these errors were encountered: