Skip to content

Commit 7d42e3d

Browse files
Revert changes in FOrmProvider.tsx
1 parent 6779253 commit 7d42e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Form/FormProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function FormProvider(
314314

315315
const registerInput = useCallback<RegisterInput>(
316316
(inputID, shouldSubmitForm, inputProps) => {
317-
const newRef: RefObject<InputComponentBaseProps> = inputRefs.current[inputID] ?? inputProps.ref ?? createRef();
317+
const newRef: MutableRefObject<InputComponentBaseProps> = inputRefs.current[inputID] ?? inputProps.ref ?? createRef();
318318
if (inputRefs.current[inputID] !== newRef) {
319319
inputRefs.current[inputID] = newRef;
320320
}

0 commit comments

Comments
 (0)