mirror of
https://github.com/usememos/memos.git
synced 2025-11-06 07:30:33 +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({
|
setState({
|
||||||
expandButtonStatus: Number(expandButtonStatus) as ExpandButtonStatus,
|
expandButtonStatus: Number(expandButtonStatus) as ExpandButtonStatus,
|
||||||
});
|
});
|
||||||
if (!expandButtonStatus) {
|
|
||||||
memoContentContainerRef.current?.scrollIntoView();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue