mirror of
https://github.com/rio-labs/rio.git
synced 2026-01-08 06:09:44 -06:00
scroll to top on page change
This commit is contained in:
@@ -854,7 +854,7 @@ window.location.href = {json.dumps(str(target_url))};
|
||||
// Scroll to the top. This has to happen before we change the URL, because if
|
||||
// the URL has a #fragment then we will scroll to the corresponding ScrollTarget
|
||||
let element = {
|
||||
'document.querySelector(".rio-user-root-container-inner")'
|
||||
'document.querySelector(".rio-user-root-container-outer")'
|
||||
if self._app_server.debug_mode else
|
||||
'document.documentElement'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user