fix: unable to close the modal by clicking the inner layer

Signed-off-by: wasabi <690898835@qq.com>
This commit is contained in:
wasabi 2021-06-10 20:04:39 +08:00
parent 222b00f0a8
commit 35443f82c6
3 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,7 @@ export const CropperDiv = (props) => {
{buttonText}
</Button>
<Modal
maskClosable={false}
title={title}
visible={visible}
okText={i18next.t("user:Upload a photo")}

View File

@ -62,6 +62,7 @@ export const PasswordModal = (props) => {
{ hasOldPassword ? i18next.t("user:Modify password...") : i18next.t("user:Set password...")}
</Button>
<Modal
maskClosable={false}
title={i18next.t("user:Password")}
visible={visible}
okText={i18next.t("user:Set Password")}

View File

@ -65,6 +65,7 @@ export const ResetModal = (props) => {
{buttonText}
</Button>
<Modal
maskClosable={false}
title={buttonText}
visible={visible}
okText={buttonText}