fix: Scroll to top when route changes
This commit is contained in:
parent
6df06cac97
commit
b26381e6b8
@ -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: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user