Skip to content

Commit

Permalink
add onfocus-event to select all to amount input
Browse files Browse the repository at this point in the history
  • Loading branch information
justcallmelarry committed Feb 20, 2024
1 parent 2af0660 commit 304f8c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/expense-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export function ExpenseForm({
inputMode="decimal"
step={0.01}
placeholder="0.00"
onFocus={(e) => e.currentTarget.select()}
{...field}
/>
</FormControl>
Expand Down

0 comments on commit 304f8c2

Please sign in to comment.