Skip to content

Commit

Permalink
Fix formRef initialization to handle null value in FormErrorList comp…
Browse files Browse the repository at this point in the history
…onent

Refs: #7310
  • Loading branch information
deleonio committed Jan 29, 2025
1 parent 2b6505b commit 426ac02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/samples/react/src/components/form/error-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React, { useRef } from 'react';
import { SampleDescription } from '../SampleDescription';

export const FormErrorList: FC = () => {
const formRef = useRef<HTMLKolFormElement>();
const formRef = useRef<HTMLKolFormElement | null>(null);
return (
<>
<SampleDescription>
Expand Down

0 comments on commit 426ac02

Please sign in to comment.