From 292c0775364b2b756a551729091db9318d2d70b7 Mon Sep 17 00:00:00 2001 From: gokulkrishh <2944237+gokulkrishh@users.noreply.github.com> Date: Fri, 3 Nov 2023 07:22:07 +0530 Subject: [PATCH] add decimal instead of numeric input mode for price & units --- components/add/expenses.tsx | 2 +- components/add/income.tsx | 2 +- components/add/investments.tsx | 4 ++-- components/add/subscriptions.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/add/expenses.tsx b/components/add/expenses.tsx index 49bb82ae..027b59c5 100644 --- a/components/add/expenses.tsx +++ b/components/add/expenses.tsx @@ -153,7 +153,7 @@ export default function AddExpense({ show, onHide, mutate, selected, lookup }: A placeholder="199" required min="0" - inputMode="numeric" + inputMode="decimal" step="any" onChange={(event) => setState({ ...state, price: event.target.value })} value={state.price} diff --git a/components/add/income.tsx b/components/add/income.tsx index 6a5e15fd..270e57bd 100644 --- a/components/add/income.tsx +++ b/components/add/income.tsx @@ -139,7 +139,7 @@ export default function AddIncome({ show, onHide, mutate, selected, lookup }: Ad className="mt-1.5" id="amount" type="number" - inputMode="numeric" + inputMode="decimal" placeholder="10000" required min="0" diff --git a/components/add/investments.tsx b/components/add/investments.tsx index 23fde684..831a90a7 100644 --- a/components/add/investments.tsx +++ b/components/add/investments.tsx @@ -138,7 +138,7 @@ export default function AddInvestments({ show, onHide, mutate, selected, lookup