Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix editor autocomplete

Steven21838d0aae0c
diff --git a/web/src/components/MemoEditor/Editor/index.tsx b/web/src/components/MemoEditor/Editor/index.tsx
index d6744f43e..1db0c8fcd 100644
--- a/web/src/components/MemoEditor/Editor/index.tsx
+++ b/web/src/components/MemoEditor/Editor/index.tsx
@@ -176,8 +176,7 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef<
insertText = `${Number(number) + 1}. `;
}
if (insertText) {
- editorActions.insertText(`\n${insertText}`);
- event.preventDefault();
+ editorActions.insertText(insertText);
}
}
};