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

This commit is contained in:
Danny Avila 2024-11-07 11:26:06 -05:00 committed by GitHub
parent 49ee88b6e8
commit 81f29360e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')}