Skip to content

Cannot find a descendant at path [1,0] in node: {"children": #325

Answered by cmmartin
karthikcodes6 asked this question in Q&A
Discussion options

You must be logged in to vote

@karthikcodes6 In my case, this was caused by setting autoFocus on the Editable component from Slate. Setting it to false seems to have solved the issue.

I think autoFocus causes slate to try to focus the editor before the yjs provider has synced (before it has any nodes to focus). It's basically a race condition

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@BitPhinix
Comment options

@BitPhinix
Comment options

Answer selected by BitPhinix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #323 on March 06, 2022 14:43.