Skip to content

Commit

Permalink
fix: fix editable/readOnly props. (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 11, 2023
1 parent 85c3468 commit 606a5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/useCodeMirror.ts
Expand Up @@ -66,8 +66,8 @@ export function useCodeMirror(props: UseCodeMirror) {

const defaultExtensions = getDefaultExtensions({
theme,
editable: true,
readOnly: false,
editable,
readOnly,
placeholder: placeholderStr,
indentWithTab: defaultIndentWithTab,
basicSetup: defaultBasicSetup,
Expand Down

0 comments on commit 606a5a1

Please sign in to comment.