mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add comments
This commit is contained in:
parent
4ee4ca99be
commit
7361d352bf
@ -29,10 +29,12 @@ export function pageScrollbar() {
|
|||||||
scope.$on('$routeChangeSuccess', () => {
|
scope.$on('$routeChangeSuccess', () => {
|
||||||
lastPos = 0;
|
lastPos = 0;
|
||||||
elem[0].scrollTop = 0;
|
elem[0].scrollTop = 0;
|
||||||
|
// Focus page to enable scrolling by keyboard
|
||||||
elem[0].focus({ preventScroll: true });
|
elem[0].focus({ preventScroll: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
elem[0].tabIndex = -1;
|
elem[0].tabIndex = -1;
|
||||||
|
// Focus page to enable scrolling by keyboard
|
||||||
elem[0].focus({ preventScroll: true });
|
elem[0].focus({ preventScroll: true });
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user