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

fix: avoid throwing an exception if the restored selection does not make sense #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vitmf
Copy link

@vitmf vitmf commented Feb 9, 2025

Similarly to #170, in some rare cases restoreRelativeSelection in _typeChanged can't restore the selection and throws an exception. This seems to happen when the yjs document can't be perfectly converted to the prosemirror document because of schema restrictions.

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

Successfully merging this pull request may close these issues.

1 participant