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 6779253 commit 7d42e3dCopy full SHA for 7d42e3d
src/components/Form/FormProvider.tsx
@@ -314,7 +314,7 @@ function FormProvider(
314
315
const registerInput = useCallback<RegisterInput>(
316
(inputID, shouldSubmitForm, inputProps) => {
317
- const newRef: RefObject<InputComponentBaseProps> = inputRefs.current[inputID] ?? inputProps.ref ?? createRef();
+ const newRef: MutableRefObject<InputComponentBaseProps> = inputRefs.current[inputID] ?? inputProps.ref ?? createRef();
318
if (inputRefs.current[inputID] !== newRef) {
319
inputRefs.current[inputID] = newRef;
320
}
0 commit comments