From f5685fc414605d4bf0cf0ea4e860fe704fe1c898 Mon Sep 17 00:00:00 2001 From: Aran-Fey Date: Tue, 9 Jul 2024 14:51:10 +0200 Subject: [PATCH] scroll to top on page change --- rio/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rio/session.py b/rio/session.py index 95ec3264..f9984743 100644 --- a/rio/session.py +++ b/rio/session.py @@ -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' };