mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-05 10:16:41 +00:00
Merge pull request #1695 from Pallavikumarimdb/fix/rule-priority-input
Make priority input box focused on pressing the up/down arrows
This commit is contained in:
@@ -854,6 +854,7 @@ export default function ReverseProxyTargets(props: {
|
|||||||
type="number"
|
type="number"
|
||||||
min="1"
|
min="1"
|
||||||
max="1000"
|
max="1000"
|
||||||
|
onClick={(e) => e.currentTarget.focus()}
|
||||||
defaultValue={row.original.priority || 100}
|
defaultValue={row.original.priority || 100}
|
||||||
className="w-full max-w-20"
|
className="w-full max-w-20"
|
||||||
onBlur={(e) => {
|
onBlur={(e) => {
|
||||||
|
|||||||
@@ -438,6 +438,7 @@ export default function ResourceRules(props: {
|
|||||||
defaultValue={row.original.priority}
|
defaultValue={row.original.priority}
|
||||||
className="w-[75px]"
|
className="w-[75px]"
|
||||||
type="number"
|
type="number"
|
||||||
|
onClick={(e) => e.currentTarget.focus()}
|
||||||
onBlur={(e) => {
|
onBlur={(e) => {
|
||||||
const parsed = z.coerce
|
const parsed = z.coerce
|
||||||
.number()
|
.number()
|
||||||
|
|||||||
Reference in New Issue
Block a user