Fix change handler using the input radio element for checked state.

PiperOrigin-RevId: 461674558
This commit is contained in:
Andrew Jakubowicz 2022-07-18 11:42:44 -07:00 committed by Copybara-Service
parent 29c5900643
commit 78f31a20d4

View File

@ -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,