Commit 4ee4ca99 by Tobias Skarhed

Prevent scroll on focus for iframe

parent 25bcdbca
......@@ -29,11 +29,11 @@ export function pageScrollbar() {
scope.$on('$routeChangeSuccess', () => {
lastPos = 0;
elem[0].scrollTop = 0;
elem[0].focus();
elem[0].focus({ preventScroll: true });
});
elem[0].tabIndex = -1;
elem[0].focus();
elem[0].focus({ preventScroll: true });
},
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment