A local-first personal finance app
[Mobile] Use decimal input mode for mobile modal amount fields (#2607)
Joel Jeremy Marquez16ef674910d9
diff --git a/packages/desktop-client/src/components/modals/HoldBufferModal.tsx b/packages/desktop-client/src/components/modals/HoldBufferModal.tsxindex 74ea959aae..c7e249da23 100644--- a/packages/desktop-client/src/components/modals/HoldBufferModal.tsx+++ b/packages/desktop-client/src/components/modals/HoldBufferModal.tsx@@ -56,6 +56,7 @@ export function HoldBufferModal({<FieldLabel title="Hold this amount:" /><InitialFocus><InputField+ inputMode="decimal"defaultValue={initialAmount}onUpdate={value => setAmount(value)}onEnter={() => _onSubmit(amount)}diff --git a/packages/desktop-client/src/components/modals/RolloverBudgetSummaryModal.tsx b/packages/desktop-client/src/components/modals/RolloverBudgetSummaryModal.tsxindex cd2f12c90c..0cec233d86 100644--- a/packages/desktop-client/src/components/modals/RolloverBudgetSummaryModal.tsx+++ b/packages/desktop-client/src/components/modals/RolloverBudgetSummaryModal.tsx@@ -34,7 +34,7 @@ export function RolloverBudgetSummaryModal({const openTransferModal = () => {dispatch(pushModal('transfer', {- title: 'Transfer',+ title: 'Transfer: To Budget',month,amount: sheetValue,onSubmit: (amount, toCategoryId) => {diff --git a/packages/desktop-client/src/components/modals/TransferModal.tsx b/packages/desktop-client/src/components/modals/TransferModal.tsxindex 0e5577f46f..dae973f5a9 100644--- a/packages/desktop-client/src/components/modals/TransferModal.tsx+++ b/packages/desktop-client/src/components/modals/TransferModal.tsx@@ -85,6 +85,7 @@ export function TransferModal({<FieldLabel title="Transfer this amount:" /><InitialFocus><InputField+ inputMode="decimal"tabIndex={1}defaultValue={_initialAmount}onUpdate={setAmount}diff --git a/upcoming-release-notes/2607.md b/upcoming-release-notes/2607.mdnew file mode 100644index 0000000000..d48e22fee7--- /dev/null+++ b/upcoming-release-notes/2607.md@@ -0,0 +1,6 @@+---+category: Enhancements+authors: [joel-jeremy]+---++Use decimal input mode for transfer and hold buffer modal inputs.