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