diff --git a/web/src/components/deleteConfirmationModal.tsx b/web/src/components/deleteConfirmationModal.tsx index ec0eb0ba..cae63342 100644 --- a/web/src/components/deleteConfirmationModal.tsx +++ b/web/src/components/deleteConfirmationModal.tsx @@ -31,14 +31,24 @@ const DeleteConfirmationModal = ({ message, _delete }: DeleteConfirmationModalProps) => { + const handleDeleteClick = (event: React.MouseEvent) => { + event.stopPropagation() + _delete() + } + + const handleClose = (event: any) => { + event.stopPropagation() + setOpen(false) + } + return ( - setOpen(false)} open={open}> + {message} - - + diff --git a/web/src/components/nameInputModal.tsx b/web/src/components/nameInputModal.tsx index a3bff3a4..3a81fab8 100644 --- a/web/src/components/nameInputModal.tsx +++ b/web/src/components/nameInputModal.tsx @@ -69,8 +69,18 @@ const NameInputModal = ({ action(name) } + const handleActionClick = (event: React.MouseEvent) => { + event.stopPropagation() + action(name) + } + + const handleClose = (event: any) => { + event.stopPropagation() + setOpen(false) + } + return ( - setOpen(false)} open={open}> + {title} @@ -91,12 +101,12 @@ const NameInputModal = ({ -