mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-17 19:16:58 +02:00
refactor(v2): remove delay after skip link pressed (#4169)
This commit is contained in:
parent
4d3573dfcb
commit
d63a77d239
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue