Tobias Skarhed 7 éve
szülő
commit
7361d352bf
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      public/app/core/components/scroll/page_scroll.ts

+ 2 - 0
public/app/core/components/scroll/page_scroll.ts

@@ -29,10 +29,12 @@ export function pageScrollbar() {
       scope.$on('$routeChangeSuccess', () => {
         lastPos = 0;
         elem[0].scrollTop = 0;
+        // Focus page to enable scrolling by keyboard
         elem[0].focus({ preventScroll: true });
       });
 
       elem[0].tabIndex = -1;
+      // Focus page to enable scrolling by keyboard
       elem[0].focus({ preventScroll: true });
     },
   };