Scheduling infrastructure for absolutely everyone.
Fixed scroll issue while configuring workflow (#23142)
沙什瓦特511be7386cc9
diff --git a/packages/features/ee/workflows/pages/workflow.tsx b/packages/features/ee/workflows/pages/workflow.tsxindex 08efe2b0e4f..02610b37fe6 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);