mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-18 11:36:53 +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) {
|
function programmaticFocus(el) {
|
||||||
el.setAttribute('tabindex', '-1');
|
el.setAttribute('tabindex', '-1');
|
||||||
el.focus();
|
el.focus();
|
||||||
setTimeout(() => el.removeAttribute('tabindex'), 1000);
|
el.removeAttribute('tabindex');
|
||||||
}
|
}
|
||||||
|
|
||||||
function SkipToContent(): JSX.Element {
|
function SkipToContent(): JSX.Element {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue