diff --git a/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx b/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx index 70f92d83e..3101dc157 100644 --- a/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx +++ b/packages/app-desktop/gui/NoteEditor/NoteBody/CodeMirror/Editor.tsx @@ -191,7 +191,6 @@ function Editor(props: EditorProps, ref: any) { cm.on('drop', editor_drop); cm.on('dragover', editor_drag); cm.on('refresh', props.onResize); - cm.on('update', props.onResize); // It's possible for searchMarkers to be available before the editor // In these cases we set the markers asap so the user can see them as @@ -206,7 +205,6 @@ function Editor(props: EditorProps, ref: any) { cm.off('drop', editor_drop); cm.off('dragover', editor_drag); cm.off('refresh', props.onResize); - cm.off('update', props.onResize); editorParent.current.removeChild(cm.getWrapperElement()); setEditor(null); };