added scrolltop

This commit is contained in:
2025-07-08 09:08:13 +01:00
parent 28fb2ecbe7
commit 103c548e32
2 changed files with 3 additions and 1 deletions
@@ -91,7 +91,8 @@ const RepComplete = (props) => {
: props.props.currentView.caseReference : props.props.currentView.caseReference
.representationType, .representationType,
}), }),
setRepresentationMessageSent(true)); setRepresentationMessageSent(true)),
window.scrollTo({ top: 0, behavior: "smooth" });
}); });
return ( return (
<div id="rep-appellant"> <div id="rep-appellant">
+1
View File
@@ -65,6 +65,7 @@ let CompleteAppeal = (props) => {
console.log("patching///////////////"); console.log("patching///////////////");
// //
//patchCase(incidentId); //patchCase(incidentId);
window.scrollTo({ top: 0, behavior: "smooth" });
}, [ }, [
props.appealType.caseReference, props.appealType.caseReference,
props.props.form.appealForm.values, props.props.form.appealForm.values,