diff --git a/src/Modal/ModalPopup.jsx b/src/Modal/ModalPopup.jsx index 52bc3adb04..e6c36fd45e 100644 --- a/src/Modal/ModalPopup.jsx +++ b/src/Modal/ModalPopup.jsx @@ -34,6 +34,14 @@ function ModalPopup({ }, ]; + const handleOnClickOutside = (e) => { + if (e.type === 'touchstart') { + return; + } + + onClose(); + }; + return ( @@ -47,7 +55,7 @@ function ModalPopup({ scrollLock={false} enabled={isOpen} onEscapeKey={onClose} - onClickOutside={onClose} + onClickOutside={handleOnClickOutside} > {isOpen && (