Skip to content
Snippets Groups Projects
Commit 900735e1 authored by Leonardo Christino's avatar Leonardo Christino
Browse files

fix(build): allow ref to be null

parent fbcdce45
No related branches found
No related tags found
No related merge requests found
Pipeline #128726 passed
......@@ -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 });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment