Fix the issue where the deployment type could not be selected

This commit is contained in:
yoan 2024-10-30 11:03:41 +08:00
parent 16967c4ab1
commit 55b77fdf5c
3 changed files with 17 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Certimate - Your Trusted SSL Automation Partner</title> <title>Certimate - Your Trusted SSL Automation Partner</title>
</head> </head>
<body class="bg-background"> <body class="bg-background" style="pointer-events: auto !important">
<div id="root"></div> <div id="root"></div>
<script type="module" src="/src/main.tsx"></script> <script type="module" src="/src/main.tsx"></script>
</body> </body>

View File

@ -195,7 +195,16 @@ const AccessEditDialog = ({ trigger, op, data, className }: AccessEditProps) =>
} }
return ( return (
<Dialog onOpenChange={setOpen} open={open} modal={false}> <Dialog
onOpenChange={(openState) => {
if (openState) {
document.body.style.pointerEvents = "auto";
}
setOpen(openState);
}}
open={open}
modal={false}
>
<DialogTrigger asChild className={cn(className)}> <DialogTrigger asChild className={cn(className)}>
{trigger} {trigger}
</DialogTrigger> </DialogTrigger>

View File

@ -179,7 +179,12 @@ const DeployEditDialog = ({ trigger, deployConfig, onSave }: DeployEditDialogPro
> >
<Dialog open={open} onOpenChange={setOpen}> <Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger>{trigger}</DialogTrigger> <DialogTrigger>{trigger}</DialogTrigger>
<DialogContent className="dark:text-stone-200"> <DialogContent
className="dark:text-stone-200"
onInteractOutside={(event) => {
event.preventDefault();
}}
>
<DialogHeader> <DialogHeader>
<DialogTitle>{t("domain.deployment.tab")}</DialogTitle> <DialogTitle>{t("domain.deployment.tab")}</DialogTitle>
<DialogDescription></DialogDescription> <DialogDescription></DialogDescription>