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

Default schema normalization infinite loop #1466

Closed
tommoor opened this issue Dec 13, 2017 · 1 comment
Closed

Default schema normalization infinite loop #1466

tommoor opened this issue Dec 13, 2017 · 1 comment

Comments

@tommoor
Copy link
Contributor

tommoor commented Dec 13, 2017

Do you want to request a feature or report a bug?

Bug

What's the current behavior?

In the latest versions of Slate nested marks when the schema specifies marks: [''] results in an infinite loop attempting to normalize. See JSFiddle reproducing the issue here:

https://jsfiddle.net/fj9dvhom/20/

Screenshot of stack:
image

What's the expected behavior?

The expected behavior is that the node would have all marks removed. Perhaps there is a better way of specifying that a node should only be plain text with no children or marks? If that's the case I'd be happy to put in a PR improving the docs on this usecase 😄

@ianstormtaylor
Copy link
Owner

Fixed by #3093.

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

Successfully merging a pull request may close this issue.

2 participants