How to set focus to the named element from a hash route? #57150
Unanswered
mtavares628
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now that blazor will handle hash routing to a named element, how can I set the focus to that element after it is scrolled into view? Currently, the functionality only scrolls the element into view, but focus stays where it is. This is fine for sighted users with a mouse, but it becomes an accessibility issue for users with screen readers and/or keyboard navigation because it doesn't bring the focus to that scrolled element. Is there something that I can hook into that will set the focus after scroll occurs when the page is rendered?
Beta Was this translation helpful? Give feedback.
All reactions