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
I use slate (https://docs.slatejs.org/) with preact, all things in the latest version. The problem begins when I used preact hooks.
Slate provides rich text editor and comes from react. When used it with react, everything is ok, but when used preact, my app was crashed.
I think there is a problem with preact hooks
This problem only occurs in Firefox
This is not related to hooks but rather FF not implementing onBeforeInput but slate relying on it. React ships a rather incomplete polyfill that breaks with spellcheck/autocorrect.
I'll close this as a duplicate of #1422, have a look at the comment I just left there.
I use slate (https://docs.slatejs.org/) with preact, all things in the latest version. The problem begins when I used preact hooks.
Slate provides rich text editor and comes from react. When used it with react, everything is ok, but when used preact, my app was crashed.
I think there is a problem with preact hooks
This problem only occurs in Firefox
Reproduction
Error screen:
Sandbox: https://codesandbox.io/s/youthful-boyd-z3l36
Steps to reproduce
Run the app, type something then press
enter
orbackspace
Expected Behavior
The Slate editor adds new line or deletes characters
Actual Behavior
App is crashed
The text was updated successfully, but these errors were encountered: