From 79fe625ae7eea933b13ecd62977529c6022840e8 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Fri, 30 Jul 2021 23:45:46 +0200 Subject: [PATCH] modal prevent propagation --- src/components/Modal.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Modal.tsx b/src/components/Modal.tsx index de7d205..acec668 100644 --- a/src/components/Modal.tsx +++ b/src/components/Modal.tsx @@ -11,7 +11,9 @@ const Modal: React.FC = (props) => {
{ props.onCloseClick?.() }}> -
+
{ + e.stopPropagation() + }}> {props.children}