diff --git a/libs/shared/lib/components/forms/index.tsx b/libs/shared/lib/components/forms/index.tsx index ffab26661b9bd889aa63515ef78decfbb410846b..5669b8e10a120659879c6ac80918244f4400b92a 100644 --- a/libs/shared/lib/components/forms/index.tsx +++ b/libs/shared/lib/components/forms/index.tsx @@ -3,7 +3,7 @@ import { Button } from '../buttons'; export const FormDiv = React.forwardRef<HTMLDivElement, PropsWithChildren<{ className?: string; hAnchor?: string; offset?: string }>>( (props, ref) => { - const dialogRef = React.useRef<HTMLDivElement>(null); + const dialogRef = React.useRef<HTMLDivElement | null>(null); const isClicked = React.useRef<boolean>(false); const initialPosition = React.useRef<{ x: number; y: number }>({ x: 0, y: 0 });