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

Code Editor becomes unresponsive when 'value' prop is not empty #711

Open
dinkar030501 opened this issue Jan 18, 2025 · 1 comment
Open

Comments

@dinkar030501
Copy link

If 'value' prop is defined for the codemirror then following bugs occur:

  • sometimes we cannot use caret navigation for first word of code editor
  • if we delete the entire line then add just single word then editor becomes unresponsive... after that it either removes the word after like 1 min or throws the following error:

IndexSizeError
Failed to execute 'collapse' on 'Selection': The offset 4 is larger than the node's length (0).
▼ 6 stack frames were expanded.
at eval (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:2520:18
at DOMObserver.ignore (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:5690:14
at DocView.updateSelection (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:2504:26
at EditorView.update (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:6008:20
at DOMObserver.flush (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:5797:50
at MutationObserver.eval (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:5561:263

Screen.Recording.2025-01-19.at.2.37.45.AM.mov
@dinkar030501
Copy link
Author

dinkar030501 commented Jan 20, 2025

Update to this: Code editor is working fine in Safari and Firefox but its showing the above error in chrome

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

No branches or pull requests

1 participant