We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b09de commit 9f95158Copy full SHA for 9f95158
core/src/index.tsx
@@ -130,6 +130,9 @@ function MarkdownEditorInternal(
130
};
131
const height = typeof codemirrorProps.height === 'number' ? `${codemirrorProps.height}px` : codemirrorProps.height;
132
133
+ const preValue = props.value;
134
+ useEffect(() => setValue(preValue ?? ''), [preValue]);
135
+
136
const previewScrollHandle = useCallback(
137
(event: Event) => {
138
if (!enableScroll) return;
0 commit comments