Skip to content

Commit 66dc6d0

Browse files
committed
fix(forms): fix radio input value selection
1 parent 0fcdb8f commit 66dc6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forms/FormRadio.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { formatClasses } from '../utils/attributes';
77
import { FormGroup } from './FormGroup';
88

99
export function FormRadio({ id, name, required: _required, checkedValue, valueLabel, inline, disabled: _disabled }) {
10-
const { getValue, handleOnChange, register, getFormData } = useFormControl(name, 'boolean');
10+
const { getValue, handleOnChange, register, getFormData } = useFormControl(name);
1111
const registerRef = useCallback(register, [register]);
1212
const value = getValue();
1313
const disabled = booleanOrFunction(_disabled, getFormData());

0 commit comments

Comments
 (0)