From 511be7386cc97fa7663007efb2d5427ecbfaf746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=99=E4=BB=80=E7=93=A6=E7=89=B9?= <114943221+ShashwatPS@users.noreply.github.com> Date: Tue, 19 Aug 2025 11:03:54 +0530 Subject: [PATCH] Fixed scroll issue while configuring workflow (#23142) --- packages/features/ee/workflows/pages/workflow.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/features/ee/workflows/pages/workflow.tsx b/packages/features/ee/workflows/pages/workflow.tsx index 08efe2b0e4..02610b37fe 100644 --- a/packages/features/ee/workflows/pages/workflow.tsx +++ b/packages/features/ee/workflows/pages/workflow.tsx @@ -109,6 +109,15 @@ function WorkflowPage({ workflow: workflowId }: PageProps) { const isPending = isPendingWorkflow || isPendingEventTypes; + useEffect(() => { + requestAnimationFrame(() => { + window.scrollTo({ + top: 0, + behavior: "smooth", + }); + }); + }, [isPending]); + useEffect(() => { if (!isPending) { setFormData(workflow);