commit | b26381e6b860687b11601a82c84855c5f0b0e649 | [log] [tgz] |
---|---|---|
author | Faris Ansari <netchamp.faris@gmail.com> | Tue Aug 28 18:29:01 2018 +0530 |
committer | Faris Ansari <netchamp.faris@gmail.com> | Tue Aug 28 18:29:01 2018 +0530 |
tree | 50978aa6557315094db277d4678ccf998f071a6b | |
parent | 6df06cac975035e346910f5e51198d8e23677e2b [diff] [blame] |
fix: Scroll to top when route changes
diff --git a/erpnext/public/js/hub/PageContainer.vue b/erpnext/public/js/hub/PageContainer.vue index e814be8..f213a18 100644 --- a/erpnext/public/js/hub/PageContainer.vue +++ b/erpnext/public/js/hub/PageContainer.vue
@@ -48,6 +48,7 @@ mounted() { frappe.route.on('change', () => { this.set_current_page(); + frappe.utils.scroll_to(0); }); }, methods: {