This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
checkbox: enter should submit form and not toggle #11583
Labels
a11y
This issue is related to accessibility
has: Pull Request
A PR has been created to address this issue
P2: required
Issues that must be fixed.
resolution: fixed
type: bug
Milestone
Bug
CodePen and steps to reproduce the issue:
CodePen Demo which demonstrates the issue:
https://codepen.io/Splaktar/pen/ZVjWRJ?editors=1010#0
Detailed Reproduction Steps:
input type="checkbox"
) and press theEnter
key on the keyboardmd-checkbox
) and press theEnter
key on the keyboardWhat is the expected behavior?
Spacebar should toggle checkboxes. Enter should submit the form.
What is the current behavior?
For
md-checkbox
, theEnter
key toggles the checkbox.What is the use-case or motivation for changing an existing behavior?
Consistency with a11y and HTML standards.
Which versions of AngularJS, Material, OS, and browsers are affected?
Is there anything else we should know? Stack Traces, Screenshots, etc.
Thanks to @codymikol for pointing this out.
The text was updated successfully, but these errors were encountered: