Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #367 from Rostlab/scroll-to-top-on-click
Browse files Browse the repository at this point in the history
Scroll to top on page change
  • Loading branch information
yashha committed Apr 10, 2016
2 parents 007931d + 15fb07f commit fcb715c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ browserHistory.listen(location => {
});

ReactDOM.render(
<Router history={browserHistory}>
<Router onUpdate={() => window.scrollTo(0, 0)} history={browserHistory}>
<Route path="/" component={App}>
<IndexRoute component={Start}/>
<Route path="/ranking" component={Ranking}/>
Expand Down

0 comments on commit fcb715c

Please sign in to comment.