Skip to content

Commit

Permalink
fix(radio-button): check-changed is not fired on arrow keys
Browse files Browse the repository at this point in the history
  • Loading branch information
goremikins authored Aug 2, 2022
1 parent 0676017 commit 77d7407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/elements/src/radio-button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ export class RadioButton extends ControlElement {
element = direction === 'next' ? group[0] : group[group.length - 1];
}

if (!element.readonly) {
this.checked = false;
if (!element.readonly && element !== this && !element.checked) {
element.checked = true;
element.notifyPropertyChange('checked', element.checked);
}

element.focus();
Expand Down

0 comments on commit 77d7407

Please sign in to comment.