reiji-h 2 лет назад
Родитель
Сommit
9ea77ea3a9

+ 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;