Skip to content
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

Custom “clear” button should restore focus to the input #351

Closed
jouni opened this issue Nov 28, 2016 · 0 comments
Closed

Custom “clear” button should restore focus to the input #351

jouni opened this issue Nov 28, 2016 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jouni
Copy link
Member

jouni commented Nov 28, 2016

When using a custom “clear” button element, clicking the button causes the input to lose focus. We should move/restore the focus back to the input when the user clicks/tabs the clear button.

We should also consider if we should automatically add tabindex='-1' to custom “clear” and “toggle” buttons, so that keyboard navigation would work the same with the normal and light versions.

Related to #334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants