Skip to content

Commit

Permalink
fix: [AXIMST-655] fixed position of the view-port after loading the u…
Browse files Browse the repository at this point in the history
…nit page (#217)
  • Loading branch information
PKulkoRaccoonGang authored Mar 29, 2024
1 parent 0a2bb22 commit 689ae65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/course-unit/CourseUnit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ const CourseUnit = ({ courseId }) => {
setUnitXBlocks(courseVerticalChildren.children);
}, [courseVerticalChildren.children]);

useEffect(() => {
window.scrollTo({ top: 0, behavior: 'smooth' });
}, []);

const {
isShow: isShowProcessingNotification,
title: processingNotificationTitle,
Expand Down

0 comments on commit 689ae65

Please sign in to comment.