Move focus back to button efter user tab out of last link in mobile menu.
This commit is contained in:
parent
72266f462e
commit
df5b2e08e4
1 changed files with 4 additions and 0 deletions
|
|
@ -45,4 +45,8 @@
|
|||
});
|
||||
});
|
||||
|
||||
// Move focus back to button efter user tab out of last link.
|
||||
const lastlink = [].slice.call(links).pop();
|
||||
lastlink.addEventListener('blur', () => toggle.focus());
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Reference in a new issue