From 5407e3c8216ad34b3804d93aa415ae5e109de723 Mon Sep 17 00:00:00 2001 From: Pallavi Kumari Date: Sat, 18 Oct 2025 23:38:14 +0530 Subject: [PATCH] make priority input box focus on up/down click --- src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx | 1 + src/app/[orgId]/settings/resources/[niceId]/rules/page.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx b/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx index ed52ae2b..44c7769f 100644 --- a/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx +++ b/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx @@ -854,6 +854,7 @@ export default function ReverseProxyTargets(props: { type="number" min="1" max="1000" + onClick={(e) => e.currentTarget.focus()} defaultValue={row.original.priority || 100} className="w-full max-w-20" onBlur={(e) => { diff --git a/src/app/[orgId]/settings/resources/[niceId]/rules/page.tsx b/src/app/[orgId]/settings/resources/[niceId]/rules/page.tsx index b8459293..1cf08c82 100644 --- a/src/app/[orgId]/settings/resources/[niceId]/rules/page.tsx +++ b/src/app/[orgId]/settings/resources/[niceId]/rules/page.tsx @@ -438,6 +438,7 @@ export default function ResourceRules(props: { defaultValue={row.original.priority} className="w-[75px]" type="number" + onClick={(e) => e.currentTarget.focus()} onBlur={(e) => { const parsed = z.coerce .number()