Necmettin Karakaya
2020-07-19 00:33:27 +08:00
committed by GitHub
parent d5b5d4fc27
commit 24448c7504
6 changed files with 7 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ class ScrollToTop extends React.Component<Props> {
componentDidUpdate(prevProps) {
if (this.props.location.pathname === prevProps.location.pathname) return;
// exception for when entering or exiting document edit, scroll postion should not reset
// exception for when entering or exiting document edit, scroll position should not reset
if (
this.props.location.pathname.match(/\/edit\/?$/) ||
prevProps.location.pathname.match(/\/edit\/?$/)