Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(button): set default button type to "button" if not specified (#7406)

marliessophie31810bb2b7cc
diff --git a/web/src/components/ui/button.tsx b/web/src/components/ui/button.tsx
index b30c100d5e..84cf087de7 100644
--- a/web/src/components/ui/button.tsx
+++ b/web/src/components/ui/button.tsx
@@ -73,6 +73,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
disabled={disabled || loading}
onClick={loading || disabled ? undefined : onClick}
{...props}
+ type={props.type || "button"}
>
{loading ? <Spinner /> : children}
</Comp>