Skip to content

Commit

Permalink
task: useRef requires an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
meissadia committed Jan 24, 2025
1 parent b8ab805 commit cb68368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/useIsOverflowing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function useIsOverflowing(): [
MutableRefObject<HTMLDivElement | undefined>,
boolean,
] {
const reference = useRef<HTMLDivElement>();
const reference = useRef<HTMLDivElement>(null);
const [isOverflowing, setIsOverflowing] = useState(false);

useEffect(() => {
Expand Down

0 comments on commit cb68368

Please sign in to comment.