feat: update memo detail page (#1682)

* feat: update memo detail page

* chore: update
This commit is contained in:
boojack
2023-05-20 08:39:39 +08:00
committed by GitHub
parent 04124a2ace
commit b40571095d
16 changed files with 144 additions and 186 deletions

View File

@ -88,6 +88,10 @@ const MemoEditor = () => {
prevEditorStateRef.current = editorState;
}, [editorState.editMemoId]);
useEffect(() => {
handleEditorFocus();
}, [editorStore.state.relationList]);
const handleKeyDown = (event: React.KeyboardEvent) => {
if (!editorRef.current) {
return;