-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Crash when undoing typing (model-nodelist-offset-out-of-bounds) #7903
Comments
I see that it's also reproducible on live docs, happens since version 20.0.0.
|
Idea: If we won't be able to find the root of the problem (why the mutation happens when we press ctrl+z which is then preventDefault()ed), we agreed that it'd be ok to remove the fake caret (the one for collapsed selection) completely. The UX without the caret wasn't bad. We introduced it while we were working on a fake selection for non-collapsed selections, which was a much bigger problem itself. |
Similar issue but with a ranged selection: #8052 |
The reason for this uncontrolled behavior is a Chrome feature (that's why FF doesn't suffer from it) where if you undo input that has no more undo steps it will move your focus to the previously focused component and undo it for you. We could go for easy win by blocking ctrl+z/y in this case - but that would just hide the problem. Instead I'm seeking for the source of the problem. Also I was able to create a unit test using After identifying that the problem comes from our mutation handler I checked whether a fix for #7462 doesn't solve this and indeed it fixes the issue (branch |
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue. |
We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it). |
📝 Provide detailed reproduction steps (if any)
👀 The issue should get fixed by #7462 👀
See the screencast:
✔️ Expected result
What is the expected result of the above steps?
❌ Actual result
What is the actual result of the above steps?
📃 Other details
Regression since v20.0.0.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: