Skip to content

Commit

Permalink
add decimal instead of numeric input mode for price & units
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulkrishh committed Nov 3, 2023
1 parent 97159c4 commit 292c077
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/add/expenses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion components/add/income.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions components/add/investments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function AddInvestments({ show, onHide, mutate, selected, lookup
<Input
className="mt-1.5"
id="price"
inputMode="numeric"
inputMode="decimal"
type="number"
placeholder="1000"
required
Expand All @@ -154,7 +154,7 @@ export default function AddInvestments({ show, onHide, mutate, selected, lookup
className="mt-1.5"
id="units"
type="number"
inputMode="numeric"
inputMode="decimal"
placeholder="10"
required
min="0"
Expand Down
2 changes: 1 addition & 1 deletion components/add/subscriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default function AddSubscriptions({ show, onHide, mutate, selected, looku
<Input
className="mt-1.5"
id="price"
inputMode="numeric"
inputMode="decimal"
type="number"
placeholder="699"
required
Expand Down

1 comment on commit 292c077

@vercel
Copy link

@vercel vercel bot commented on 292c077 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.