Move focus back to button efter user tab out of last link in mobile menu.

This commit is contained in:
Fredrik Jonsson 2022-12-22 09:47:25 +01:00
commit df5b2e08e4

View file

@ -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());
})();