Skip to content

Commit

Permalink
fix: fix editable plugin enabling condition
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Feb 6, 2022
1 parent 253df49 commit 680a6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createCodeMirror.ts → src/lib/createCodeMirror.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function createCodeMirror(initialOptions: CodeMirrorOptions) {
indentWithTab ? keymap.of([defaultIndentWithTab]) : null,
basicSetup ? defaultBasicSetup : null,
placeholder && extendPlaceholder ? extendPlaceholder(placeholder) : null,
editable ? EditorView.editable.of(false) : null,
!editable ? EditorView.editable.of(false) : null,
!!onUpdate && typeof onUpdate === 'function' ? EditorView.updateListener.of(onUpdate) : null,
updateListener,
defaultThemeOption,
Expand Down

0 comments on commit 680a6ce

Please sign in to comment.