Skip to content

Commit 86da7d1

Browse files
committed
Fixes the double type=submit issue on the concurrency form
1 parent 469808c commit 86da7d1

File tree

1 file changed

+10
-0
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues

1 file changed

+10
-0
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues/route.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,16 @@ function QueueOverrideConcurrencyButton({
984984
</Paragraph>
985985
)}
986986
<Form method="post" onSubmit={() => setIsOpen(false)} className="space-y-3">
987+
{/* Hidden button to capture Enter key for primary action */}
988+
<button
989+
type="submit"
990+
name="action"
991+
value="queue-override"
992+
disabled={isLoading || !concurrencyLimit}
993+
className="hidden"
994+
tabIndex={-1}
995+
aria-hidden="true"
996+
/>
987997
<input type="hidden" name="friendlyId" value={queue.id} />
988998
<div className="space-y-2">
989999
<label htmlFor="concurrencyLimit" className="text-sm text-text-bright">

0 commit comments

Comments
 (0)