EditorJS does not show up
The editor seems to be ready, but doesnt show up in the container
console output:
I'm ready! (ノ◕ヮ◕)ノ*:・゚✧
Editor component:
🤔 interesting.. providing 'fallback' allows the editor to show!
7 Replies
Curious, Is this using solid-start? And if so, were there any hydration errors or warnings logged in the console before you added the fallback?
no, not using solid-start
Ok - thanks. I want just wondering if it was related to another thread - but nope.
More specific to your example. Is there any chance Editor was somehow getting called twice - so your initial code would have different ID to the div in the DOM?
Like, when you went back to using Math.random for id, did the problem reappear despite the fallback?
yes, tested again now and as soon as i remove fallback attribute the editor stops showing up
very weird
logging the instances show that they have the existing element's ids
I guess Solid thinks it needs to delete the children in that div once
Perhaps make the loading message a sibling of the holder div instead of a child? Still don't know why adding a fallback would change that behavior.
But regardless, it is probably better to leave Solid (or any library) to completely manage the DOM nodes it creates. @mr._.void Does this work?
editorIsReady
, including those created by the add-on.Perhaps make the loading message a sibling of the holder div instead of a child? Still don't know why adding a fallback would change that behavior.
But regardless, it is probably better to leave Solid (or any library) to completely manage the DOM nodes it creates. @mr._.void Does this work?
you were right, this works as well
lemme try, sec
yes, that works as well 😄
thank you
Lovely. Feel free to close this thread if you're happy too.