Skip to content
Snippets Groups Projects
Unverified Commit 16ef6749 authored by Joel Jeremy Marquez's avatar Joel Jeremy Marquez Committed by GitHub
Browse files

[Mobile] Use decimal input mode for mobile modal amount fields (#2607)

* Use decimal input mode for mobile modal amount fields

* Release notes
parent 19bcfbe6
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ export function HoldBufferModal({ ...@@ -56,6 +56,7 @@ export function HoldBufferModal({
<FieldLabel title="Hold this amount:" /> <FieldLabel title="Hold this amount:" />
<InitialFocus> <InitialFocus>
<InputField <InputField
inputMode="decimal"
defaultValue={initialAmount} defaultValue={initialAmount}
onUpdate={value => setAmount(value)} onUpdate={value => setAmount(value)}
onEnter={() => _onSubmit(amount)} onEnter={() => _onSubmit(amount)}
......
...@@ -34,7 +34,7 @@ export function RolloverBudgetSummaryModal({ ...@@ -34,7 +34,7 @@ export function RolloverBudgetSummaryModal({
const openTransferModal = () => { const openTransferModal = () => {
dispatch( dispatch(
pushModal('transfer', { pushModal('transfer', {
title: 'Transfer', title: 'Transfer: To Budget',
month, month,
amount: sheetValue, amount: sheetValue,
onSubmit: (amount, toCategoryId) => { onSubmit: (amount, toCategoryId) => {
......
...@@ -85,6 +85,7 @@ export function TransferModal({ ...@@ -85,6 +85,7 @@ export function TransferModal({
<FieldLabel title="Transfer this amount:" /> <FieldLabel title="Transfer this amount:" />
<InitialFocus> <InitialFocus>
<InputField <InputField
inputMode="decimal"
tabIndex={1} tabIndex={1}
defaultValue={_initialAmount} defaultValue={_initialAmount}
onUpdate={setAmount} onUpdate={setAmount}
......
---
category: Enhancements
authors: [joel-jeremy]
---
Use decimal input mode for transfer and hold buffer modal inputs.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment