From 78f31a20d41d0ab986eedef10cb76b37a86e16a7 Mon Sep 17 00:00:00 2001 From: Andrew Jakubowicz Date: Mon, 18 Jul 2022 11:42:44 -0700 Subject: [PATCH] Fix change handler using the input radio element for checked state. PiperOrigin-RevId: 461674558 --- radio/lib/radio.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radio/lib/radio.ts b/radio/lib/radio.ts index 1591578b54..9da4bd9a66 100644 --- a/radio/lib/radio.ts +++ b/radio/lib/radio.ts @@ -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,