Skip to content

Commit

Permalink
feat: make easier to focus on text inputs from anywhere in group
Browse files Browse the repository at this point in the history
  • Loading branch information
dib542 committed May 10, 2024
1 parent d09be32 commit eb661dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/cards/LimitOrderCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -903,11 +903,16 @@ function NumericInputRow({
className={['numeric-value-input flex row py-3 px-4', className]
.filter(Boolean)
.join(' ')}
onClick={() => inputRef.current?.focus()}
onKeyDown={() => inputRef.current?.focus()}
role="button"
tabIndex={0}
>
{prefix && (
<div className="numeric-value-input__prefix mr-3">{prefix}</div>
)}
<input
ref={inputRef}
type="number"
className="numeric-value-input__input flex"
placeholder={placeholder}
Expand Down

0 comments on commit eb661dd

Please sign in to comment.