We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc28754 commit b885d86Copy full SHA for b885d86
packages/slate-react/src/components/slate.tsx
@@ -58,7 +58,7 @@ export const Slate = (props: {
58
59
useIsomorphicLayoutEffect(() => {
60
const fn = () => {
61
- window.setTimeout(() => {
+ setTimeout(() => {
62
setIsFocused(ReactEditor.isFocused(editor))
63
}, 0)
64
}
@@ -68,7 +68,7 @@ export const Slate = (props: {
68
69
70
71
72
73
74
0 commit comments