-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The button loses focus from the button when moving to the next subpages #968
Comments
GitHub issues are reserved for bug reports or feature requests. Please ask usage questions on StackOverflow or the Discord server. By default a page change will not keep the element focused, that's an accessibility best practice default. You'll need to handle that yourself. |
@dummdidumm could focusing the body not be optional? I'm having a similar issue where I have a search text field updating the URL with @lukaszpolowczyk as a workaround I've been using |
@dummdidumm @ahtcx It looks like something easy to do. L245 of |
@dummdidumm Should I create a separate issue? |
Please open a new issue for the feature request. |
The button loses focus from the button when moving to the next subpages:
Example (with a description of the problem): https://github.com/lukaszpolowczyk/focus-button
Problem
Tab key
on the keyboardRight Arrow
on the keyboardQuestion: How do I keep focus without using
element.focus()
or anything like that?GIF with this:
![lost-focus](https://user-images.githubusercontent.com/16800535/114312453-0534aa00-9af3-11eb-8127-fa5c146092fb.gif)
The code looks like this:
The text was updated successfully, but these errors were encountered: