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

Could not completely normalize the editor after 3150 iterations! #5811

Open
ilya2204 opened this issue Feb 26, 2025 · 0 comments
Open

Could not completely normalize the editor after 3150 iterations! #5811

ilya2204 opened this issue Feb 26, 2025 · 0 comments
Labels

Comments

@ilya2204
Copy link
Contributor

Description
I have a logic with custom normalization in my project, where I called Transforms.wrapNodes for some case. Since version 0.112.0 due to #5768 this logic started to conflict with the built-in normalization. It turns out that I do wrap, and the built-in normalization does unwrap and this is an infinite loop. Previously, when the built-in normalization delete the element, and did not unwrap, everything was fine.

I can fix my normalization, but in general such a problem can occur not only to me and this change was dangerous

Expectation
A clear and concise description of what you expected to happen. (Often it's helpful to test out the behavior of other editors like Google Docs, Medium, Notion, etc. to see how they handle the same issue.)

Environment

  • Slate Version: [>= 0.112.0]
@ilya2204 ilya2204 added the bug label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant