-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
normalizeNode updates the same nodes' property #4641
Comments
Not sure what’s going on here but it’s likely not a Slate issue. Post a sandbox if you want help or I would ask it in Slack really. Not sure there is any bug here with Slate. |
Hold on, I'll provide the sandbox later... |
@BrentFarese I am facing the same issue, it happens because whenever you press enter inside a paragraph(InsertBreak) is invoked and its split the nodes, it copies all the paragraph properties to the new paragraph, it doesn't even reach the normalize logic since it will have first paragraph id on it by the code above, same happens inside list item slate/packages/slate/src/create-editor.ts Line 158 in 735d2d0
slate/packages/slate/src/transforms/node.ts Line 776 in 735d2d0
Any solution how can we exclude the id property from the copy? |
same |
I want to assign each element node to have an Id such that:
Unfortunately, all nodes have the same Id after normalized, what is going on here? Why transforms.setNodes at specified path causes all nodes have same property?
The text was updated successfully, but these errors were encountered: