Skip to content

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

improvement: set v3 button type default to "button

Scott Wilson14ed6db7f36d
diff --git a/frontend/src/components/v3/generic/Button/Button.tsx b/frontend/src/components/v3/generic/Button/Button.tsx
index da6615a444..0b2f82d173 100644
--- a/frontend/src/components/v3/generic/Button/Button.tsx
+++ b/frontend/src/components/v3/generic/Button/Button.tsx
@@ -82,6 +82,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
isDisabled = false,
children: _children,
asChild = false,
+ type = "button",
...props
},
ref
@@ -105,6 +106,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
data-slot="button"
data-variant={variant}
data-size={size}
+ type={type}
disabled={isDisabled || isPending}
className={cn(buttonVariants({ variant, size, className, isPending, isFullWidth }))}
{...props}