diff --git a/packages/slate-react/src/components/editable.tsx b/packages/slate-react/src/components/editable.tsx index 7fe94b16e5..1a87500461 100644 --- a/packages/slate-react/src/components/editable.tsx +++ b/packages/slate-react/src/components/editable.tsx @@ -1114,7 +1114,7 @@ export const Editable = (props: EditableProps) => { (event: React.CompositionEvent) => { if (ReactEditor.hasSelectableTarget(editor, event.target)) { if (ReactEditor.isComposing(editor)) { - Promise.resolve(()=>{ + Promise.resolve(() => { setIsComposing(false) IS_COMPOSING.set(editor, false) })