diff --git a/web/src/components/MemoEditor.tsx b/web/src/components/MemoEditor.tsx index b8b02fe9..3e00847e 100644 --- a/web/src/components/MemoEditor.tsx +++ b/web/src/components/MemoEditor.tsx @@ -173,6 +173,8 @@ const MemoEditor = () => { } } } + + editorRef.current?.scrollToCursor(); } } return; @@ -483,10 +485,7 @@ const MemoEditor = () => {
{ - handleKeyDown(e); - editorRef.current?.scrollToCursor(); - }} + onKeyDown={handleKeyDown} onDrop={handleDropEvent} onFocus={handleEditorFocus} onBlur={handleEditorBlur}