Ghost/ghost/admin/app/modifiers/scroll-top.js

7 lines
196 B
JavaScript
Raw Normal View History

import getScrollParent from 'ghost-admin/utils/get-scroll-parent';
import {modifier} from 'ember-modifier';
export default modifier((element) => {
getScrollParent(element).scrollTop = 0;
});