From f67757f60601cf5cc4d5735479e776365f6fd9bb Mon Sep 17 00:00:00 2001 From: Mahoo Huang <45908451+Mahoo12138@users.noreply.github.com> Date: Mon, 13 Nov 2023 13:51:52 +0800 Subject: [PATCH] feat: add editor auto focus preference (#2498) * feat: add editor auto focus perference * feat: set editor auto focus --- web/src/components/MemoEditor/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx index cfce3f59..768bf471 100644 --- a/web/src/components/MemoEditor/index.tsx +++ b/web/src/components/MemoEditor/index.tsx @@ -75,6 +75,7 @@ const MemoEditor = (props: Props) => { useEffect(() => { editorRef.current?.setContent(contentCache || ""); + handleEditorFocus(); }, []); useEffect(() => {