refactor(v2): remove delay after skip link pressed (#4169)

This commit is contained in:
Alexey Pyltsyn 2021-02-04 13:32:49 +03:00 committed by GitHub
parent 4d3573dfcb
commit d63a77d239
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {