From 56c186526456bbbcf28403be19e782ef75b26f41 Mon Sep 17 00:00:00 2001 From: Lauri Vuorela Date: Wed, 28 Feb 2024 16:44:27 +0100 Subject: [PATCH] Add onClick-event to select all to amount input (#104) * add onfocus-event to select all to amount input * use onClick instead of onFocus --- src/components/expense-form.tsx | 1 + 1 file changed, 1 insertion(+) 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} />