Skip to content

Commit f6419c8

Browse files
authored
fixes #186 (#196)
Signed-off-by: Cristian Postescu <postescu@gmail.com>
1 parent cef6c5e commit f6419c8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

gatsby-browser.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ export const onClientEntry = () => {
3333
processClientEntry();
3434
};
3535

36+
export const onInitialClientRender = () => {
37+
const gatsbyFocusWrapper = document.getElementById('gatsby-focus-wrapper');
38+
if (gatsbyFocusWrapper) {
39+
gatsbyFocusWrapper.removeAttribute('style');
40+
gatsbyFocusWrapper.removeAttribute('tabIndex');
41+
}
42+
};
43+
3644
export const onRouteUpdate = () => {
3745
if (typeof window === 'undefined') return;
3846
window.locations = window.locations || [document.referrer];

0 commit comments

Comments
 (0)