We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e12da commit 1adeb46Copy full SHA for 1adeb46
packages/radio-group/src/LionRadioGroup.js
@@ -35,15 +35,17 @@ export class LionRadioGroup extends LionFieldset {
35
}
36
37
get serializedValue() {
38
- return this._getCheckedRadioElement().serializedValue;
+ const el = this._getCheckedRadioElement();
39
+ return el ? el.serializedValue : '';
40
41
42
set serializedValue(value) {
43
this._setCheckedRadioElement(value, (el, val) => el.serializedValue === val);
44
45
46
get formattedValue() {
- return this._getCheckedRadioElement().formattedValue;
47
48
+ return el ? el.formattedValue : '';
49
50
51
set formattedValue(value) {
0 commit comments