Explorar el Código

remove scrollPastEnd from CodeMirrorEditorComment

Yuki Takei hace 2 años
padre
commit
48c073aa24
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      packages/editor/src/components/CodeMirrorEditorComment.tsx

+ 1 - 2
packages/editor/src/components/CodeMirrorEditorComment.tsx

@@ -1,7 +1,7 @@
 import { memo, useEffect } from 'react';
 
 import type { Extension } from '@codemirror/state';
-import { keymap, scrollPastEnd } from '@codemirror/view';
+import { keymap } from '@codemirror/view';
 
 import { useCodeMirrorEditorIsolated } from '../stores';
 
@@ -11,7 +11,6 @@ import type { GlobalCodeMirrorEditorKey } from 'src/consts';
 
 
 const additionalExtensions: Extension[] = [
-  scrollPastEnd(),
 ];
 
 type Props = CodeMirrorEditorProps & {