Skip to content

Commit cc07e1c

Browse files
committed
fix(web): Enter submits the secret provider dialog
Signed-off-by: Yordis Prieto <[email protected]>
1 parent ba55117 commit cc07e1c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/web/src/components/settings/SecretProviderDialog.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export function SecretProviderDialog({
9090
</DialogHeader>
9191
<DialogPanel>
9292
<form
93+
id="secret-provider-form"
9394
className="grid gap-4"
9495
onSubmit={(event) => {
9596
event.preventDefault();
@@ -157,7 +158,11 @@ export function SecretProviderDialog({
157158
<Button variant="outline" onClick={close}>
158159
Cancel
159160
</Button>
160-
<Button onClick={save} disabled={submitted && Result.isFailure(result)}>
161+
<Button
162+
type="submit"
163+
form="secret-provider-form"
164+
disabled={submitted && Result.isFailure(result)}
165+
>
161166
{existing ? "Save changes" : "Add provider"}
162167
</Button>
163168
</DialogFooter>

0 commit comments

Comments
 (0)