Skip to content

Commit b885d86

Browse files
committed
change window.setTimeout to setTimeout
1 parent bc28754 commit b885d86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/slate-react/src/components/slate.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const Slate = (props: {
5858

5959
useIsomorphicLayoutEffect(() => {
6060
const fn = () => {
61-
window.setTimeout(() => {
61+
setTimeout(() => {
6262
setIsFocused(ReactEditor.isFocused(editor))
6363
}, 0)
6464
}
@@ -68,7 +68,7 @@ export const Slate = (props: {
6868

6969
useIsomorphicLayoutEffect(() => {
7070
const fn = () => {
71-
window.setTimeout(() => {
71+
setTimeout(() => {
7272
setIsFocused(ReactEditor.isFocused(editor))
7373
}, 0)
7474
}

0 commit comments

Comments
 (0)