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 48d77a1 commit 5bf024fCopy full SHA for 5bf024f
packages/core/src/useFormField/useFormField.ts
@@ -39,7 +39,7 @@ export type WithFieldProps<TControlProps extends object> = Simplify<
39
40
export function useFormField<TValue = unknown>(
41
init?: FormFieldInit<TValue>,
42
- constrolType: string = 'Field',
+ controlType: string = 'Field',
43
): FormField<TValue> {
44
const controllerProps = normalizeProps(init ?? { label: '' });
45
const state = useFieldState<TValue>(init);
@@ -49,7 +49,7 @@ export function useFormField<TValue = unknown>(
49
});
50
51
if (__DEV__) {
52
- registerField(state, controller.controlType ?? constrolType);
+ registerField(state, controller.controlType ?? controlType);
53
}
54
55
return {
0 commit comments