Shun Miyazawa 1 год назад
Родитель
Сommit
819d731a45

+ 1 - 1
packages/editor/src/client/components/CodeMirrorEditorReadOnly.tsx

@@ -68,7 +68,7 @@ export const CodeMirrorEditorReadOnly = ({ markdown, onScroll }: Props): JSX.Ele
       hideToolbar
       editorKey={GlobalCodeMirrorEditorKey.READONLY}
       onScroll={onScroll}
-      cmProps={{}}
+      cmProps={{}} // Do not pass undefined when initializing useCodeMirrorEditorIsolated
     />
   );
 };