diff --git a/app/src/common/hooks/useOnClickOutside.js b/app/src/common/hooks/useOnClickOutside.js index f3d01ee40b..ce4d582bcd 100644 --- a/app/src/common/hooks/useOnClickOutside.js +++ b/app/src/common/hooks/useOnClickOutside.js @@ -28,10 +28,10 @@ export const useOnClickOutside = (ref, handler) => { } }; - document.addEventListener('pointerdown', listener); + document.addEventListener('pointerup', listener); return () => { - document.removeEventListener('pointerdown', listener); + document.removeEventListener('pointerup', listener); }; }, [ref, handler]); };