mirror of
https://github.com/material-components/material-web.git
synced 2024-09-21 02:27:12 +03:00
Fix change handler using the input radio element for checked state.
PiperOrigin-RevId: 461674558
This commit is contained in:
parent
29c5900643
commit
78f31a20d4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user