diff --git a/packages/jaen-fields-mdx/src/MdxField/MdxField.tsx b/packages/jaen-fields-mdx/src/MdxField/MdxField.tsx index 1ea784d..1de3d93 100644 --- a/packages/jaen-fields-mdx/src/MdxField/MdxField.tsx +++ b/packages/jaen-fields-mdx/src/MdxField/MdxField.tsx @@ -56,8 +56,8 @@ export const MdxField = connectField( return ( { - jaenField.onUpdateValue(value) + onUpdateValue={(mdast: MdastRoot) => { + jaenField.onUpdateValue(mdast) }} rawValue={typeof value === 'string' ? undefined : value} value={typeof value === 'string' ? value : undefined}