From 468de2a4a4ece6b7c01afa4df90d1794f9ab2f63 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Mon, 15 Aug 2022 12:57:09 +0200 Subject: [PATCH] Modal close when clicking outside --- components/ProjectModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ProjectModal.tsx b/components/ProjectModal.tsx index 008c6f3..9ff6437 100644 --- a/components/ProjectModal.tsx +++ b/components/ProjectModal.tsx @@ -102,11 +102,11 @@ const ProjectModal: NextPage = () => { return
{prev} 0 ? "visible" : "hidden"}}>  |  {select}  |  {next}
; })(); - return
+ return
setVisible(false)}> setVisible(false)} className={styles.fakeLink}>
X
-
+
event.stopPropagation()}> {nextPageSelector}