Skip to content

Commit

Permalink
EPMRPP-79105 || Fix modal closing on click outside (#3638)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bam6ycha authored Nov 7, 2023
1 parent 1ef736d commit 64b2e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/common/hooks/useOnClickOutside.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
};

0 comments on commit 64b2e67

Please sign in to comment.