diff --git a/src/components/ConfigMenu/ConfigMenu.tsx b/src/components/ConfigMenu/ConfigMenu.tsx
index 9ecb9ef..f8ad002 100644
--- a/src/components/ConfigMenu/ConfigMenu.tsx
+++ b/src/components/ConfigMenu/ConfigMenu.tsx
@@ -44,6 +44,7 @@ const ConfigMenu = ({
title={t('configuration') as string}
setIsModalOpen={setIsModalOpen}
handleConfirm={handleConfirm}
+ handleClickBackdrop={handleConfirm}
>
diff --git a/src/components/PopupModal/PopupModal.tsx b/src/components/PopupModal/PopupModal.tsx
index 2bcfc97..55fac05 100644
--- a/src/components/PopupModal/PopupModal.tsx
+++ b/src/components/PopupModal/PopupModal.tsx
@@ -10,6 +10,7 @@ const PopupModal = ({
setIsModalOpen,
handleConfirm,
handleClose,
+ handleClickBackdrop,
cancelButton = true,
children,
}: {
@@ -18,6 +19,7 @@ const PopupModal = ({
setIsModalOpen: React.Dispatch
>;
handleConfirm?: () => void;
handleClose?: () => void;
+ handleClickBackdrop?: () => void;
cancelButton?: boolean;
children?: React.ReactElement;
}) => {
@@ -29,6 +31,11 @@ const PopupModal = ({
setIsModalOpen(false);
};
+ const _handleBackdropClose = () => {
+ if (handleClickBackdrop) handleClickBackdrop();
+ else _handleClose();
+ };
+
if (modalRoot) {
return ReactDOM.createPortal(
@@ -81,7 +88,7 @@ const PopupModal = ({
,
modalRoot