fix: Scroll to top when route changes

This commit is contained in:
Faris Ansari 2018-08-28 18:29:01 +05:30
parent 6df06cac97
commit b26381e6b8

View File

@ -48,6 +48,7 @@ export default {
mounted() {
frappe.route.on('change', () => {
this.set_current_page();
frappe.utils.scroll_to(0);
});
},
methods: {