Skip to content

Commit

Permalink
fix: Questionnaire move to top (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderthieme authored Feb 16, 2022
1 parent 121fe58 commit ab424fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/views/questionnaire/questionnaire.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ export class Questionnaire {
this.currentAnswerValue === 'yes' ? '1' : '0',
]);
}
try {
window.scrollTo(0, 0);
} catch(error) {
console.log(error);
}
};

moveToPreviousStep = () => {
Expand Down

0 comments on commit ab424fc

Please sign in to comment.