Skip to content

Commit

Permalink
fix: useClickoutside dependency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsatoshi99 committed Jul 10, 2024
1 parent f7a0a9e commit 94cbd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/global/useClickOutside.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function useClickOutside<T extends HTMLElement>(callback: () => void) {
return () => {
document.removeEventListener("mousedown", handleClickOutside);
};
}, []);
}, []); // eslint-disable-line

return ref;
}
Expand Down

0 comments on commit 94cbd43

Please sign in to comment.