We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fcdb8f commit 66dc6d0Copy full SHA for 66dc6d0
src/forms/FormRadio.jsx
@@ -7,7 +7,7 @@ import { formatClasses } from '../utils/attributes';
7
import { FormGroup } from './FormGroup';
8
9
export function FormRadio({ id, name, required: _required, checkedValue, valueLabel, inline, disabled: _disabled }) {
10
- const { getValue, handleOnChange, register, getFormData } = useFormControl(name, 'boolean');
+ const { getValue, handleOnChange, register, getFormData } = useFormControl(name);
11
const registerRef = useCallback(register, [register]);
12
const value = getValue();
13
const disabled = booleanOrFunction(_disabled, getFormData());
0 commit comments