1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop: Fixes #5872: Markdown search no longer scrolls to result (#5876)

This commit is contained in:
Kenichi Kobayashi 2021-12-19 00:14:57 +09:00 committed by GitHub
parent 5462ee635c
commit fe2eb25acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
};