mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
@@ -15,6 +15,7 @@ During the alpha period, things might break! We take breaking changes very serio
|
||||
## Next
|
||||
|
||||
- 🚨 BREAKING: Renamed the `classic` theme to `shoelace`
|
||||
- Fixed a bug in `<wa-radio-group>` that caused radios to uncheck when assigning a numeric value [issue:924]
|
||||
|
||||
## 3.0.0-alpha.13
|
||||
|
||||
|
||||
@@ -92,11 +92,8 @@ export default class WaRadioGroup extends WebAwesomeFormAssociatedElement {
|
||||
|
||||
/** The current value of the radio group, submitted as a name/value pair with form data. */
|
||||
@state()
|
||||
set value(val: string | null) {
|
||||
if (this._value === val) {
|
||||
return;
|
||||
}
|
||||
|
||||
set value(val: string | number | null) {
|
||||
if (typeof val === 'number') val = String(val);
|
||||
this.valueHasChanged = true;
|
||||
this._value = val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user