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

Checkboxradio: change fires twice when hitting space on the widget #7378

gabrielschulhof opened this Issue May 7, 2014 · 0 comments


None yet
1 participant

gabrielschulhof commented May 7, 2014

Steps to reproduce:

  1. Visit
  2. Press TAB until the checkbox is highlighted
  3. Hit space

At this point you will find that change fires twice, recording the value of the input's checked property in the "console".

For comparison, click on the checkbox instead. The problem is that the space bar triggers a vclick - yes, a vclick, which causes the checkboxradio code to trigger a change event. However, the input also natively triggers change in response to the spacebar. That makes two change events for each space bar press.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment