fix: scroll when clicking expand button (#1035)

This commit is contained in:
Stephen Zhou 2023-02-07 20:09:30 +08:00 committed by GitHub
parent 81f2166912
commit 99cac7cac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,9 +83,6 @@ const MemoContent: React.FC<Props> = (props: Props) => {
setState({
expandButtonStatus: Number(expandButtonStatus) as ExpandButtonStatus,
});
if (!expandButtonStatus) {
memoContentContainerRef.current?.scrollIntoView();
}
};
return (