Node.js based forum software built for the modern web
fix: prevent skip link from being visibly focused for non-screen-reader users
Julian Lam585f81c250ab
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.jsindex 44a9f6eca8..eba906b5b2 100644--- a/public/src/ajaxify.js+++ b/public/src/ajaxify.js@@ -144,10 +144,8 @@ ajaxify.widgets = { render: render };// Refocus skip link after template renderingsetTimeout(() => {- const skipLink = document.querySelector('a[href="#content"].visually-hidden-focusable');- if (skipLink) {- skipLink.focus();- }+ // For now, just blur any focused element to prevent visual flash+ document.activeElement.blur();}, 0);});