Removing hrefs like this is breaks a11y entirely

This commit is contained in:
Jake Mason 2023-01-16 22:24:44 -05:00
parent 922d6283f8
commit ad904de16b
1 changed files with 2 additions and 2 deletions

View File

@ -139,9 +139,9 @@
const loginLink = document.getElementById("login-link");
if (loginPopup !== null) {
loginLink.removeAttribute("href");
loginLink.onclick = () => {
loginLink.onclick = (e) => {
e.preventDefault();
loginPopup.classList.toggle("open");
}
}