Skip to content

Commit

Permalink
Radio Group Pattern and Examples: Remove Enter key as a way of checki…
Browse files Browse the repository at this point in the history
…ng a radio (pull #2964)

Resolves issue #2954 by removing the Enter key from event handler for checking a radio button.
  • Loading branch information
jongund authored Apr 7, 2024
1 parent 98de24f commit 9d3fe80
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class RadioGroupActiveDescendant {
var currentItem = this.getCurrentRadioButton();
switch (event.key) {
case ' ':
case 'Enter':
this.setChecked(currentItem);
flag = true;
break;
Expand Down
1 change: 0 additions & 1 deletion content/patterns/radio/examples/js/radio-rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ class RatingRadioGroup {

switch (event.key) {
case ' ':
case 'Enter':
this.setChecked(tgt);
flag = true;
break;
Expand Down
1 change: 0 additions & 1 deletion content/patterns/radio/examples/js/radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class RadioGroup {

switch (event.key) {
case ' ':
case 'Enter':
this.setChecked(tgt);
flag = true;
break;
Expand Down

0 comments on commit 9d3fe80

Please sign in to comment.