Skip to content

Commit

Permalink
only checking with spacebar if radio is unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
marjonlynch committed Apr 22, 2020
1 parent 8edd080 commit be3022a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web-components/fast-components/src/radio/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ export class Radio extends FormAssociated<HTMLInputElement> {
super.keypressHandler(e);
switch (e.keyCode) {
case keyCodeSpace:
this.checked = !this.checked;
if (!this.checked) {
this.checked = true;
this.updateOtherGroupRadios();
}
break;
}
};
Expand Down

0 comments on commit be3022a

Please sign in to comment.