fix(lion-radio-group): handle unchecked state
This commit is contained in:
parent
41e12da90d
commit
1adeb46e34
1 changed files with 4 additions and 2 deletions
|
|
@ -35,7 +35,8 @@ export class LionRadioGroup extends LionFieldset {
|
||||||
}
|
}
|
||||||
|
|
||||||
get serializedValue() {
|
get serializedValue() {
|
||||||
return this._getCheckedRadioElement().serializedValue;
|
const el = this._getCheckedRadioElement();
|
||||||
|
return el ? el.serializedValue : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
set serializedValue(value) {
|
set serializedValue(value) {
|
||||||
|
|
@ -43,7 +44,8 @@ export class LionRadioGroup extends LionFieldset {
|
||||||
}
|
}
|
||||||
|
|
||||||
get formattedValue() {
|
get formattedValue() {
|
||||||
return this._getCheckedRadioElement().formattedValue;
|
const el = this._getCheckedRadioElement();
|
||||||
|
return el ? el.formattedValue : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
set formattedValue(value) {
|
set formattedValue(value) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue