Skip to content

Commit 606a5a1

Browse files
committed
fix: fix editable/readOnly props. (#488)
1 parent 85c3468 commit 606a5a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/useCodeMirror.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export function useCodeMirror(props: UseCodeMirror) {
6666

6767
const defaultExtensions = getDefaultExtensions({
6868
theme,
69-
editable: true,
70-
readOnly: false,
69+
editable,
70+
readOnly,
7171
placeholder: placeholderStr,
7272
indentWithTab: defaultIndentWithTab,
7373
basicSetup: defaultBasicSetup,

0 commit comments

Comments
 (0)