Update web/src/components/MemoEditor/Editor/index.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: longhe.li <lilonghe@outlook.com>
This commit is contained in:
longhe.li 2026-01-22 09:33:13 +08:00 committed by GitHub
parent 0baee523d8
commit 99819cbeec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ const Editor = forwardRef(function Editor(props: EditorProps, ref: React.Forward
isInIME,
});
// focus mode scroll height is handled by flex layout
// Recalculate editor height when focus mode changes
useEffect(() => {
updateEditorHeight();
}, [isFocusMode, updateEditorHeight]);