Skip to content

Commit

Permalink
🫧 fix: Tool Auth Form Button to Prevent Form Bubbling (danny-avila#4666)
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila authored Nov 7, 2024
1 parent 49ee88b commit 81f2936
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion client/src/components/Plugins/Store/PluginAuthForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')}
Expand Down

0 comments on commit 81f2936

Please sign in to comment.