Merge pull request #3286 from hashicorp/b-ui-scroll-to-top-on-transition
Scroll to the top of the page on transition. Like a normal website.
This commit is contained in:
commit
a59d85f266
|
@ -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 New Issue