From 738b57e854ad598d8e9122b3f0171a0c2a84efb9 Mon Sep 17 00:00:00 2001 From: Chris Sherwood Date: Mon, 2 Feb 2026 16:32:41 -0800 Subject: [PATCH] fix(EasySetup): scroll to top when navigating between steps Adds a useEffect that smoothly scrolls the window to the top whenever the wizard step changes. This ensures users always see the beginning of each step content rather than remaining scrolled down from the previous step. Co-Authored-By: Claude Opus 4.5 --- admin/inertia/pages/easy-setup/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/inertia/pages/easy-setup/index.tsx b/admin/inertia/pages/easy-setup/index.tsx index 26cbdb6..e6930d5 100644 --- a/admin/inertia/pages/easy-setup/index.tsx +++ b/admin/inertia/pages/easy-setup/index.tsx @@ -453,6 +453,11 @@ export default function EasySetupWizard(props: { system: { services: ServiceSlim }, }) + // Scroll to top when step changes + useEffect(() => { + window.scrollTo({ top: 0, behavior: 'smooth' }) + }, [currentStep]) + // Auto-fetch latest collections if the list is empty useEffect(() => { if (mapCollections && mapCollections.length === 0 && !fetchLatestMapCollections.isPending) {