From 99cac7cac02b2c19a9b955867c22be34e45fd243 Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Tue, 7 Feb 2023 20:09:30 +0800 Subject: [PATCH] fix: scroll when clicking expand button (#1035) --- web/src/components/MemoContent.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/src/components/MemoContent.tsx b/web/src/components/MemoContent.tsx index 20bd0385..c43819cb 100644 --- a/web/src/components/MemoContent.tsx +++ b/web/src/components/MemoContent.tsx @@ -83,9 +83,6 @@ const MemoContent: React.FC = (props: Props) => { setState({ expandButtonStatus: Number(expandButtonStatus) as ExpandButtonStatus, }); - if (!expandButtonStatus) { - memoContentContainerRef.current?.scrollIntoView(); - } }; return (