Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🫧 fix: Tool Auth Form Button to Prevent Form Bubbling (#4666)

Danny Avila81f29360e87c
diff --git a/client/src/components/Plugins/Store/PluginAuthForm.tsx b/client/src/components/Plugins/Store/PluginAuthForm.tsx
index 01894504cf..c2d1817107 100644
--- a/client/src/components/Plugins/Store/PluginAuthForm.tsx
+++ b/client/src/components/Plugins/Store/PluginAuthForm.tsx
@@ -78,8 +78,18 @@ function PluginAuthForm({ plugin, onSubmit, isEntityTool }: TPluginAuthFormProps
})}
<button
disabled={!isDirty || !isValid || isSubmitting}
- type="submit"
+ type="button"
className="btn btn-primary relative"
+ onClick={() => {
+ handleSubmit((auth) =>
+ onSubmit({
+ pluginKey: plugin?.pluginKey ?? '',
+ action: 'install',
+ auth,
+ isEntityTool,
+ }),
+ )();
+ }}
>
<div className="flex items-center justify-center gap-2">
{localize('com_ui_save')}