You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling serializeHtml on editor.children, editor.children becomes []. The editor component doesn't rerender immediately, so this problem only becomes apparent when focusing the editor and attempting to type, which results in an error.
I think the problem is this line, where we pass the live editor to createElementWithSlate. Previously, createElementWithSlate created a fresh editor instance, so any side effects wouldn't mutate the live editor.
Description
When calling
serializeHtml
oneditor.children
,editor.children
becomes[]
. The editor component doesn't rerender immediately, so this problem only becomes apparent when focusing the editor and attempting to type, which results in an error.Most likely caused by @udecode/[email protected] (CC @dimaanj)
🧵 Discord thread
Steps to Reproduce
serializeHtml
Sandbox
https://codesandbox.io/p/devbox/eloquent-albattani-forked-kl3qlc?file=%2Fpackage.json
Environment
Bounty
Click here to add a bounty via Algora.
Funding
The text was updated successfully, but these errors were encountered: