Commit 64c77feb by David Committed by GitHub

Merge pull request #12586 from dehrax/12075-iframe-scroll

Prevent scroll on focus for iframe
parents 030d0633 7361d352
......@@ -29,11 +29,13 @@ export function pageScrollbar() {
scope.$on('$routeChangeSuccess', () => {
lastPos = 0;
elem[0].scrollTop = 0;
elem[0].focus();
// Focus page to enable scrolling by keyboard
elem[0].focus({ preventScroll: true });
});
elem[0].tabIndex = -1;
elem[0].focus();
// Focus page to enable scrolling by keyboard
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