Merged PR 1142: added scroll top to next step

added scroll top to next step

Related work items: #11055
This commit is contained in:
Robert Bond
2024-05-07 08:48:07 +00:00
+1
View File
@@ -461,6 +461,7 @@ let AboutYou = (props) => {
const onHandleSubmit = (values) => { const onHandleSubmit = (values) => {
event.preventDefault(); event.preventDefault();
console.log(JSON.stringify(values)); console.log(JSON.stringify(values));
window.scrollTo({ top: 0, behavior: "smooth" });
setFormStep(1); setFormStep(1);
}; };