Skip to content

Commit cba6b3b

Browse files
committed
fix: required check
1 parent c278243 commit cba6b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/form/CheckboxField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const CheckboxField: React.FC<CheckboxFieldProps> = ({
4646
...otherCheckboxProps
4747
}) => {
4848
if (required && validate instanceof BooleanSchema) {
49-
validate = validate.required();
49+
validate = validate.oneOf([true]);
5050
}
5151

5252
const fieldConfig: FieldConfig = {

0 commit comments

Comments
 (0)