Scroll to the top of the page on transition. Like a normal website.
This commit is contained in:
parent
d7229ce6c5
commit
0c5ec93e7d
|
@ -2,4 +2,10 @@ import Ember from 'ember';
|
|||
|
||||
const { Route } = Ember;
|
||||
|
||||
export default Route.extend({});
|
||||
export default Route.extend({
|
||||
actions: {
|
||||
didTransition() {
|
||||
window.scrollTo(0, 0);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue