Skip to content

Commit

Permalink
refactor(v2): remove delay after skip link pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Feb 3, 2021
1 parent 823d0fe commit 7f8f2a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7f8f2a4

Please sign in to comment.