Skip to content

Commit

Permalink
feature/CE-531: scroll to top when editing (#306)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Sears <[email protected]>
Co-authored-by: afwilcox <[email protected]>
  • Loading branch information
3 people authored Mar 8, 2024
1 parent 7610aba commit e4d7ed2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ export const ComplaintDetailsEdit: FC = () => {
setAttachmentsToAdd,
setAttachmentsToDelete
);

window.scrollTo({ top: 0, behavior: "smooth" });
} else {
ToggleError("Errors in form");
setErrorNotificationClass("comp-complaint-error");
Expand Down

0 comments on commit e4d7ed2

Please sign in to comment.