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

Optional autofocus the filter table textbox through an option #12

Merged
merged 2 commits into from Mar 19, 2014
Merged

Optional autofocus the filter table textbox through an option #12

merged 2 commits into from Mar 19, 2014

Conversation

penguinpowernz
Copy link
Contributor

I added a autofocus option (enabled by default) and tested it (in Chrome) in both enabled and disabled. Works pretty well. Also updated the readme to reflect the option.

only if autofocus setting is true (added the setting with default as true also)
@sunnywalker
Copy link
Owner

For accessibility, it's generally a bad idea to add autofocus to fields. This is because visitors using accessible browsers (such as screen readers) are automatically jumped into a field when the page is loaded and have no context for where they are and what's going on. That said, I think the idea is a sound one, but the page author should have to enable autofocus specifically, knowing that it's not preferred for accessibility reasons.

sunnywalker added a commit that referenced this pull request Mar 19, 2014
Optional autofocus the filter table textbox through an option
@sunnywalker sunnywalker merged commit 2503e6b into sunnywalker:master Mar 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants