Skip to content

Commit

Permalink
fix: click outside hook overriding default
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjong committed Apr 2, 2024
1 parent 7fdc8ca commit d0301bc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/ui/src/hooks/useClickOutside.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const useClickOutside = (
prevFocusableElement?: RefObject<HTMLButtonElement>,
) => {
const handleClickOutside = (event: any) => {
event.preventDefault();
if (ref.current && ref.current === event.target) {
ref.current.close();
if (prevFocusableElement) {
Expand Down

0 comments on commit d0301bc

Please sign in to comment.