diff options
author | crupest <crupest@outlook.com> | 2020-06-09 17:54:41 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-09 17:54:41 +0800 |
commit | 1f316209a28355d5af51226865833be31e5ec97d (patch) | |
tree | 3d84ecedc6d2f3ffe388bc771e5a9aa46737d048 /Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx | |
parent | d4cf8359a953a5644d5878610e43be3075fa252c (diff) | |
download | timeline-1f316209a28355d5af51226865833be31e5ec97d.tar.gz timeline-1f316209a28355d5af51226865833be31e5ec97d.tar.bz2 timeline-1f316209a28355d5af51226865833be31e5ec97d.zip |
fix(front): Attempt to fix scroll problem in timeline page.
Diffstat (limited to 'Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx')
-rw-r--r-- | Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx b/Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx index 2cfb4341..f8721985 100644 --- a/Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx +++ b/Timeline/ClientApp/src/timeline/TimelinePageTemplate.tsx @@ -114,15 +114,6 @@ export default function TimelinePageTemplate< };
}, [name, service, user, t, props.dataVersion, props.notFoundI18nKey]);
- React.useEffect(() => {
- if (posts != null) {
- window.scrollTo(
- 0,
- document.body.scrollHeight || document.documentElement.scrollHeight
- );
- }
- }, [posts]);
-
const closeDialog = React.useCallback((): void => {
setDialog(null);
}, []);
|