Skip to content

Commit f43433f

Browse files
committed
test(radio-group): use correct validator check
1 parent 18b9e72 commit f43433f

File tree

1 file changed

+1
-1
lines changed
  • core/src/components/radio-group/test/validation

1 file changed

+1
-1
lines changed

core/src/components/radio-group/test/validation/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h2>Optional Field (No Validation)</h2>
106106
// Validation functions
107107
const validators = {
108108
'fruits-radio-group': (value) => {
109-
return value !== undefined;
109+
return value !== '' && value !== undefined;
110110
},
111111
'optional-radio-group': () => true, // Always valid
112112
};

0 commit comments

Comments
 (0)