mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: scroll when clicking expand button (#1035)
This commit is contained in:
@@ -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 (
|
||||||
|
Reference in New Issue
Block a user