danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
19.34k stars 3.23k forks source link

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

Closed danny-avila closed 2 weeks ago

danny-avila commented 2 weeks ago

Summary

I modified the PluginAuthForm component to prevent form submission from bubbling up to the parent form by changing the submit button type and implementing manual submission handling.

Change Type

Testing

I tested the changes by:

  1. Verifying the form submission works correctly with the new button type
  2. Ensuring validation states are properly maintained
  3. Confirming the form data is correctly passed to the parent component
  4. Testing that no unwanted form submissions occur

Checklist