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

Checkbox - Can't select #41

Closed
jamesj-0 opened this issue Mar 20, 2020 · 0 comments
Closed

Checkbox - Can't select #41

jamesj-0 opened this issue Mar 20, 2020 · 0 comments
Labels
accessibility code review wontfix This will not be worked on

Comments

@jamesj-0
Copy link

When navigating the page with my keyboard I was unable to hit the enter key to select the checkbox.

We had the same issue! Here's a code snippet of the fix (sorry for the spoiler!)

    checkbox.addEventListener("keypress", function(e){
        if(e.which === 13){
            this.checked = !this.checked;
        }
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility code review wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants