Skip to content

Commit

Permalink
fix: 린트 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Nov 16, 2024
1 parent 9285d61 commit 25ca27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/hooks/useOnClickOutside.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ export const useOnClickOutside = <T extends HTMLElement = HTMLElement>(
document.removeEventListener('mousedown', listener);
document.removeEventListener('touchstart', listener);
};
}, [ref, handler]); // Reload only if ref or handler changes
}, [ref, handler, skipWhenParentElementSame]); // Reload only if ref or handler changes
};

0 comments on commit 25ca27b

Please sign in to comment.