Ghost/ghost/admin/app/modifiers/scroll-top.js
Sanne de Vries 7a56ded8d0 Updated About/What's new? page (#1872)
Merged About and What's new? page.
2021-09-08 14:00:24 +02:00

7 lines
196 B
JavaScript

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