From 68f31514bf39ada77a22a9df85cf42f59117352e Mon Sep 17 00:00:00 2001 From: Martin Oppitz <6279703+deleonio@users.noreply.github.com> Date: Wed, 29 Jan 2025 07:47:47 +0100 Subject: [PATCH] Fix formRef initialization: set initial value to null for proper type handling Refs: #7310 --- packages/samples/react/src/components/form/error-list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/samples/react/src/components/form/error-list.tsx b/packages/samples/react/src/components/form/error-list.tsx index 311bbd92ad..7778cc9640 100644 --- a/packages/samples/react/src/components/form/error-list.tsx +++ b/packages/samples/react/src/components/form/error-list.tsx @@ -4,7 +4,7 @@ import React, { useRef } from 'react'; import { SampleDescription } from '../SampleDescription'; export const FormErrorList: FC = () => { - const formRef = useRef(); + const formRef = useRef(null); return ( <>