Skip to content

Commit

Permalink
Merge pull request #46 from eleven-labs/step-scroll-top
Browse files Browse the repository at this point in the history
scroll to top of the page when navigating through steps
  • Loading branch information
CaptainJojo committed Feb 28, 2018
2 parents aec52a4 + 600abf0 commit a8d47b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/containers/Course.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export class Course extends React.Component {
async loadInternalStep(stepIndex) {
const { course } = this.state;
await this.props.loadStep(course, stepIndex);
document.documentElement.scrollTop = 0
}

next() {
Expand Down

0 comments on commit a8d47b5

Please sign in to comment.