mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboard: when changing route, scroll to top
This commit is contained in:
parent
1db9aeaac3
commit
d83692aa80
@ -12,6 +12,10 @@ export function geminiScrollbar() {
|
|||||||
elem[0].scrollTop = 0;
|
elem[0].scrollTop = 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
scope.$on('$routeUpdate', () => {
|
||||||
|
elem[0].scrollTop = 0;
|
||||||
|
});
|
||||||
|
|
||||||
scope.$on('$destroy', () => {
|
scope.$on('$destroy', () => {
|
||||||
scrollbar.destroy();
|
scrollbar.destroy();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user