mirror of
https://github.com/usememos/memos.git
synced 2025-11-01 09:16:09 +08:00
fix: scroll when clicking expand button (#1035)
This commit is contained in:
parent
81f2166912
commit
99cac7cac0
1 changed files with 0 additions and 3 deletions
|
|
@ -83,9 +83,6 @@ const MemoContent: React.FC<Props> = (props: Props) => {
|
|||
setState({
|
||||
expandButtonStatus: Number(expandButtonStatus) as ExpandButtonStatus,
|
||||
});
|
||||
if (!expandButtonStatus) {
|
||||
memoContentContainerRef.current?.scrollIntoView();
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue