浏览代码

change option

reiji-h 2 年之前
父节点
当前提交
9ea77ea3a9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/editor/src/components/CodeMirrorEditor/CodeMirrorEditor.tsx

+ 1 - 1
packages/editor/src/components/CodeMirrorEditor/CodeMirrorEditor.tsx

@@ -84,7 +84,7 @@ export const CodeMirrorEditor = (props: Props): JSX.Element => {
     if (styleActiveLine == null) {
       return;
     }
-    const extensions = (styleActiveLine) ? [[]] : [[highlightActiveLine(), highlightActiveLineGutter()]];
+    const extensions = (styleActiveLine) ? [[highlightActiveLine(), highlightActiveLineGutter()]] : [[]];
 
     const cleanupFunction = codeMirrorEditor?.appendExtensions?.(extensions);
     return cleanupFunction;