diff --git a/packages/slate-react/src/components/slate.tsx b/packages/slate-react/src/components/slate.tsx index 5557da2f51..85fb580f42 100644 --- a/packages/slate-react/src/components/slate.tsx +++ b/packages/slate-react/src/components/slate.tsx @@ -38,6 +38,7 @@ export const Slate = (props: { }) const onContextChange = useCallback(() => { + onChange(editor.children) setContext([editor]) }, [onChange])