diff --git a/packages/docusaurus-theme-classic/src/theme/SkipToContent/index.tsx b/packages/docusaurus-theme-classic/src/theme/SkipToContent/index.tsx index 32883e1b37e1..bf31c13377f9 100644 --- a/packages/docusaurus-theme-classic/src/theme/SkipToContent/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/SkipToContent/index.tsx @@ -13,7 +13,7 @@ import styles from './styles.module.css'; function programmaticFocus(el) { el.setAttribute('tabindex', '-1'); el.focus(); - setTimeout(() => el.removeAttribute('tabindex'), 1000); + el.removeAttribute('tabindex'); } function SkipToContent(): JSX.Element {