diff options
| author | Lauri Vuorela <lauri.vuorela@gmail.com> | 2024-02-28 16:44:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-28 10:44:27 -0500 |
| commit | 56c186526456bbbcf28403be19e782ef75b26f41 (patch) | |
| tree | 77905ae1f93e22ac63aca100f967a4c6d6dbfb90 /src/components | |
| parent | 2f991e680bea37d1f97ea77df2343200f3899817 (diff) | |
Add onClick-event to select all to amount input (#104)
* add onfocus-event to select all to amount input
* use onClick instead of onFocus
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/expense-form.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/expense-form.tsx b/src/components/expense-form.tsx index a7e549c..a13498d 100644 --- a/src/components/expense-form.tsx +++ b/src/components/expense-form.tsx @@ -222,6 +222,7 @@ export function ExpenseForm({ inputMode="decimal" step={0.01} placeholder="0.00" + onClick={(e) => e.currentTarget.select()} {...field} /> </FormControl> |
