From 33d3ab0fdab74551deb3efa37b345622793a7509 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Tue, 7 May 2024 09:46:38 +0100 Subject: [PATCH] added scroll top to next step --- components/newappeal/aboutyou.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/newappeal/aboutyou.js b/components/newappeal/aboutyou.js index 3d3c5bad..cbdfdfea 100644 --- a/components/newappeal/aboutyou.js +++ b/components/newappeal/aboutyou.js @@ -461,6 +461,7 @@ let AboutYou = (props) => { const onHandleSubmit = (values) => { event.preventDefault(); console.log(JSON.stringify(values)); + window.scrollTo({ top: 0, behavior: "smooth" }); setFormStep(1); };