Skip to content

Commit

Permalink
Fix change handler using the input radio element for checked state.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 461674558
  • Loading branch information
AndrewJakubowicz authored and copybara-github committed Jul 18, 2022
1 parent 29c5900 commit 78f31a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion radio/lib/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ export class Radio extends ActionElement {
return;
}

this.checked = this.formElement.checked;
// Per spec, the change event on a radio input always represents checked.
this.checked = true;
this.dispatchEvent(new Event('change', {
bubbles: true,
composed: true,
Expand Down

0 comments on commit 78f31a2

Please sign in to comment.