Skip to content

Commit

Permalink
Update TrainingPage.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
scwambach committed Jan 21, 2025
1 parent dab8d25 commit dabaa06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/training-page/TrainingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ export const TrainingPage = (props: Props): ReactElement => {
}
};
document.addEventListener("keydown", closeOnEsc);

if (loading) {
window.scrollTo(0, 0);
}
}, []);

const printReactContent = useReactToPrint({
Expand Down

0 comments on commit dabaa06

Please sign in to comment.