We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cef6c5e commit f6419c8Copy full SHA for f6419c8
1 file changed
gatsby-browser.js
@@ -33,6 +33,14 @@ export const onClientEntry = () => {
33
processClientEntry();
34
};
35
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
+
44
export const onRouteUpdate = () => {
45
if (typeof window === 'undefined') return;
46
window.locations = window.locations || [document.referrer];
0 commit comments