From 900735e152181ab5ac6c486f6b942f211cb392f9 Mon Sep 17 00:00:00 2001 From: Leonardo Christino <leomilho@gmail.com> Date: Sun, 17 Dec 2023 21:04:18 +0100 Subject: [PATCH] fix(build): allow ref to be null --- libs/shared/lib/components/forms/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/shared/lib/components/forms/index.tsx b/libs/shared/lib/components/forms/index.tsx index ffab26661..5669b8e10 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 }); -- GitLab