-
Notifications
You must be signed in to change notification settings - Fork 21
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
Editor broken when non-identity-stable nodeViews are specified #1
Comments
Looks like rendering in |
If |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When passing
nodeViews
as a prop to<ProseMirror />
, the editor is broken and React warns:This only happens when
nodeViews
identity changes from render to render. The issue appears to be related toEditorView#updateStateInner()
, where nodeViews' identity changes causes the editor view to modify its "outer decoration". Judging by the code, this only happens in Chrome and related browsers.Not sure what a proper fix for this would be.
For now, a workaround is to keep the
nodeViews
prop identity stable.The text was updated successfully, but these errors were encountered: