diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-18 21:41:31 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-18 21:41:31 -0400 |
| commit | d489ed1071b989ffee1b476d15d36fb2dfb5797a (patch) | |
| tree | 073ad21d5274c252771e0cbaa9f44666e53077eb /src/client/views/collections/CollectionMenu.tsx | |
| parent | 37fc6beb4662be195b8aa551cc1042b04f2c24a8 (diff) | |
resets scrollTop when navigating to a new webpage in WebBox. set url on proto's data field when creating a webPage, not delegate.
Diffstat (limited to 'src/client/views/collections/CollectionMenu.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionMenu.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionMenu.tsx b/src/client/views/collections/CollectionMenu.tsx index a4f5118d6..3f55cf103 100644 --- a/src/client/views/collections/CollectionMenu.tsx +++ b/src/client/views/collections/CollectionMenu.tsx @@ -761,6 +761,7 @@ export class CollectionFreeFormViewChrome extends React.Component<CollectionMenu } else { history.push(this._url); } + this.props.docView.props.Document._scrollTop = 0; future && (future.length = 0); } this._url = url; |
