Skip to content

Commit

Permalink
Fix formRef initialization: set initial value to null for proper type… (
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio authored Jan 29, 2025
2 parents cfc5f18 + 68f3151 commit e6f405b
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 e6f405b

Please sign in to comment.