mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 22:28:15 +00:00
Merge pull request #2892 from Pranav2612000/improv/2845-dont-close-modal-on-outside-click-while-adding-secret
improv ui: don't close "Create Secrets" modal when clicking outside it
This commit is contained in:
@@ -72,7 +72,7 @@ ModalContent.displayName = "ModalContent";
|
|||||||
|
|
||||||
export type ModalProps = Omit<DialogPrimitive.DialogProps, "open"> & { isOpen?: boolean };
|
export type ModalProps = Omit<DialogPrimitive.DialogProps, "open"> & { isOpen?: boolean };
|
||||||
export const Modal = ({ isOpen, ...props }: ModalProps) => (
|
export const Modal = ({ isOpen, ...props }: ModalProps) => (
|
||||||
<DialogPrimitive.Root open={isOpen} {...props} />
|
<DialogPrimitive.Root open={isOpen} {...props} modal/>
|
||||||
);
|
);
|
||||||
|
|
||||||
export const ModalTrigger = DialogPrimitive.Trigger;
|
export const ModalTrigger = DialogPrimitive.Trigger;
|
||||||
|
|||||||
@@ -1125,6 +1125,7 @@ export const SecretOverviewPage = () => {
|
|||||||
bodyClassName="overflow-visible"
|
bodyClassName="overflow-visible"
|
||||||
title="Create Secrets"
|
title="Create Secrets"
|
||||||
subTitle="Create a secret across multiple environments"
|
subTitle="Create a secret across multiple environments"
|
||||||
|
onPointerDownOutside={(e) => e.preventDefault()}
|
||||||
>
|
>
|
||||||
<CreateSecretForm
|
<CreateSecretForm
|
||||||
secretPath={secretPath}
|
secretPath={secretPath}
|
||||||
|
|||||||
Reference in New Issue
Block a user