mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
fix: Scroll to top when route changes
This commit is contained in:
@@ -48,6 +48,7 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
frappe.route.on('change', () => {
|
frappe.route.on('change', () => {
|
||||||
this.set_current_page();
|
this.set_current_page();
|
||||||
|
frappe.utils.scroll_to(0);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user