We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04390ce commit 6d81b07Copy full SHA for 6d81b07
web-marketplace/src/components/templates/MultiStepTemplate/MultiStep.context.tsx
@@ -130,6 +130,7 @@ export function MultiStepProvider<T extends object>({
130
131
const handleBack = (): void => {
132
goBack();
133
+ window.scrollTo({ top: 0, behavior: 'smooth' });
134
};
135
136
const handleSave = (
@@ -151,6 +152,7 @@ export function MultiStepProvider<T extends object>({
151
152
const maxAllowed = Math.max(nextStep, maxAllowedStep);
153
handleSave(formValues, maxAllowed, dataDisplay);
154
handleNext();
155
156
157
158
// this reset does not clean the stored data, it simply forces the form to start
0 commit comments