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.

fix: scroll when clicking expand button (#1035)

Stephen Zhou99cac7cac02b
diff --git a/web/src/components/MemoContent.tsx b/web/src/components/MemoContent.tsx
index 20bd03857..c43819cb1 100644
--- a/web/src/components/MemoContent.tsx
+++ b/web/src/components/MemoContent.tsx
@@ -83,9 +83,6 @@ const MemoContent: React.FC<Props> = (props: Props) => {
setState({
expandButtonStatus: Number(expandButtonStatus) as ExpandButtonStatus,
});
- if (!expandButtonStatus) {
- memoContentContainerRef.current?.scrollIntoView();
- }
};
return (