Skip to content

Commit

Permalink
fix(protocol-designer): add scroll to top functionality between parts (
Browse files Browse the repository at this point in the history
…#16906)

Scroll to top when continuing on a multi-part step form

Closes RQA-3555
  • Loading branch information
ncdiehl11 authored Nov 20, 2024
1 parent 24dc790 commit b365e27
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ export function StepFormToolbox(props: StepFormToolboxProps): JSX.Element {
setShowFormErrors(false)
} else {
setShowFormErrors(true)
handleScrollToTop()
}
handleScrollToTop()
} else {
handleSaveClick()
}
Expand Down Expand Up @@ -304,6 +304,7 @@ export function StepFormToolbox(props: StepFormToolboxProps): JSX.Element {
onClick={() => {
setToolboxStep(0)
setShowFormErrors(false)
handleScrollToTop()
}}
>
{i18n.format(t('shared:back'), 'capitalize')}
Expand Down

0 comments on commit b365e27

Please sign in to comment.