Open daniel-keller opened 3 years ago
facing the same issue here. Using the version 0.58.x solved this issue when using on Nextjs.
I solved this for next@12.0.2
and slate@0.70.0
using.
<Editable
className={styles.editable}
spellCheck={false}
autoCorrect="false"
autoCapitalize="false"
/>
Description Using SlateJS in server side rendering (in this case through NextJS) results in mismatching spellCheck, autoCorrect, and autoCapitalize between server and client. The result is these features fail to work in slate editors that are rendered server side. SlateJS's Editable component sets these properties based on
HAS_BEFORE_INPUT_SUPPORT
which (I assume) isn't available server side.Recording
Sandbox https://codesandbox.io/s/github/daniel-keller/nextjs-slatejs-spellcheck-bug
Steps To reproduce the behavior:
Expectation spellcheck, autocorrect, and autocapitalize have worked in server side rendering in previous versions of SlateJS (0.58.0).
Environment