We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5887575 commit a4b08a9Copy full SHA for a4b08a9
src/app/conf/_design-system/utils/useOnClickOutside.tsx
@@ -8,11 +8,9 @@ export function useOnClickOutside(
8
const listener = (event: MouseEvent) => {
9
const path = event.composedPath()
10
if (refs.every(ref => !ref.current || !path.includes(ref.current))) {
11
- console.log("clicked outside", refs)
12
handler(event)
13
return
14
}
15
- console.log("clicked inside", refs)
16
17
18
document.addEventListener("click", listener)
0 commit comments