Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix modal={false} focus management issue with sheet

x03220584f6c20c7846
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAddAccountModal.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAddAccountModal.tsx
index 2bc05eebc4..ace0db66d4 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAddAccountModal.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAddAccountModal.tsx
@@ -25,7 +25,7 @@ export const PamAddAccountModal = ({
resource
}: Props) => {
return (
- <Sheet open={isOpen} onOpenChange={onOpenChange} modal={false}>
+ <Sheet open={isOpen} onOpenChange={onOpenChange}>
<SheetContent className="flex h-full max-h-full flex-col gap-y-0 sm:max-w-lg">
<SheetHeader className="border-b">
<SheetTitle>Create Account</SheetTitle>
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamUpdateAccountModal.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamUpdateAccountModal.tsx
index 25a87f99d8..3b15ab0388 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/PamUpdateAccountModal.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamUpdateAccountModal.tsx
@@ -13,7 +13,7 @@ export const PamUpdateAccountModal = ({ isOpen, onOpenChange, account }: Props)
if (!account) return null;
return (
- <Sheet open={isOpen} onOpenChange={onOpenChange} modal={false}>
+ <Sheet open={isOpen} onOpenChange={onOpenChange}>
<SheetContent className="flex h-full max-h-full flex-col gap-y-0 sm:max-w-lg">
<SheetHeader className="border-b">
<SheetTitle>Edit Account</SheetTitle>
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/PamAddDiscoverySourceModal.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/PamAddDiscoverySourceModal.tsx
index d3c2096762..24af268502 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/PamAddDiscoverySourceModal.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/PamAddDiscoverySourceModal.tsx
@@ -44,7 +44,6 @@ export const PamAddDiscoverySourceModal = ({ isOpen, onOpenChange, projectId }:
onOpenChange(e);
setSelectedType(null);
}}
- modal={false}
>
<SheetContent className="flex h-full max-h-full flex-col gap-y-0 sm:max-w-lg">
<SheetHeader className="border-b">
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/PamUpdateDiscoverySourceModal.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/PamUpdateDiscoverySourceModal.tsx
index 4f576f460d..e11684962f 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/PamUpdateDiscoverySourceModal.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/PamUpdateDiscoverySourceModal.tsx
@@ -13,7 +13,7 @@ export const PamUpdateDiscoverySourceModal = ({ isOpen, onOpenChange, source }:
if (!source) return null;
return (
- <Sheet open={isOpen} onOpenChange={onOpenChange} modal={false}>
+ <Sheet open={isOpen} onOpenChange={onOpenChange}>
<SheetContent className="flex h-full max-h-full flex-col gap-y-0 sm:max-w-lg">
<SheetHeader className="border-b">
<SheetTitle>Edit Discovery Source</SheetTitle>
diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamRotationPolicyModal.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamRotationPolicyModal.tsx
index 1c49100252..1df963b7e3 100644
--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamRotationPolicyModal.tsx
+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamRotationPolicyModal.tsx
@@ -289,7 +289,7 @@ export const PamRotationPolicyModal = ({ isOpen, onOpenChange, resource }: Props
};
return (
- <Sheet open={isOpen} onOpenChange={onOpenChange} modal={false}>
+ <Sheet open={isOpen} onOpenChange={onOpenChange}>
<SheetContent className="flex h-full max-h-full flex-col gap-y-0 sm:max-w-lg">
<SheetHeader className="border-b">
<SheetTitle>Edit Rotation Policy</SheetTitle>
diff --git a/frontend/src/pages/pam/PamResourcesPage/components/PamAddResourceModal.tsx b/frontend/src/pages/pam/PamResourcesPage/components/PamAddResourceModal.tsx
index 3fc65cdf71..d48e2123dd 100644
--- a/frontend/src/pages/pam/PamResourcesPage/components/PamAddResourceModal.tsx
+++ b/frontend/src/pages/pam/PamResourcesPage/components/PamAddResourceModal.tsx
@@ -57,7 +57,6 @@ export const PamAddResourceModal = ({ isOpen, onOpenChange, projectId, onComplet
onOpenChange(e);
setSelectedResourceType(null);
}}
- modal={false}
>
<SheetContent className="flex h-full max-h-full flex-col gap-y-0 sm:max-w-lg">
<SheetHeader className="border-b">
diff --git a/frontend/src/pages/pam/PamResourcesPage/components/PamUpdateResourceModal.tsx b/frontend/src/pages/pam/PamResourcesPage/components/PamUpdateResourceModal.tsx
index ab5af099b7..c40df5a1de 100644
--- a/frontend/src/pages/pam/PamResourcesPage/components/PamUpdateResourceModal.tsx
+++ b/frontend/src/pages/pam/PamResourcesPage/components/PamUpdateResourceModal.tsx
@@ -13,7 +13,7 @@ export const PamUpdateResourceModal = ({ isOpen, onOpenChange, resource }: Props
if (!resource) return null;
return (
- <Sheet open={isOpen} onOpenChange={onOpenChange} modal={false}>
+ <Sheet open={isOpen} onOpenChange={onOpenChange}>
<SheetContent className="flex h-full max-h-full flex-col gap-y-0 sm:max-w-lg">
<SheetHeader className="border-b">
<SheetTitle>Edit Resource</SheetTitle>