diff --git a/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js b/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js index ab11910b458..0e986f53ca0 100644 --- a/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js +++ b/app/assets/javascripts/discourse/app/lib/keyboard-shortcuts.js @@ -772,7 +772,7 @@ export default { }, _onScrollEndsCallback() { - document.querySelector(".topic-post.selected a.tabLoc")?.focus(); + document.querySelector(".topic-post.selected span.tabLoc")?.focus(); }, categoriesTopicsList() { diff --git a/app/assets/javascripts/discourse/app/widgets/post.js b/app/assets/javascripts/discourse/app/widgets/post.js index 2845a51cf34..ca5beb554fe 100644 --- a/app/assets/javascripts/discourse/app/widgets/post.js +++ b/app/assets/javascripts/discourse/app/widgets/post.js @@ -663,8 +663,8 @@ createWidget("post-article", { html(attrs, state) { const rows = [ - h("a.tabLoc", { - attributes: { href: "", "aria-hidden": true, tabindex: -1 }, + h("span.tabLoc", { + attributes: { "aria-hidden": true, tabindex: -1 }, }), ]; if (state.repliesAbove.length) {