From 6f43c9da510649c55d410a70f0895fbdbcb21fad Mon Sep 17 00:00:00 2001 From: drminh2807 Date: Fri, 20 Jun 2025 06:00:32 +0700 Subject: [PATCH 1/2] fix(64243): Expense - Can't edit single-digit amount near 0.00 in split --- src/components/SelectionList/SplitListItem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/SelectionList/SplitListItem.tsx b/src/components/SelectionList/SplitListItem.tsx index 6e4aedd6b6f6..c4accb5e7b4b 100644 --- a/src/components/SelectionList/SplitListItem.tsx +++ b/src/components/SelectionList/SplitListItem.tsx @@ -139,8 +139,8 @@ function SplitListItem({ inputStyle={[styles.optionRowAmountInput]} containerStyle={[styles.textInputContainer]} touchableInputWrapperStyle={[styles.ml3]} - maxLength={formattedOriginalAmount.length} - contentWidth={formattedOriginalAmount.length * 8} + maxLength={formattedOriginalAmount.length + 1} + contentWidth={(formattedOriginalAmount.length + 1) * 8} /> From de99dd7784d76b8050aa0b0426e1fdff45684b6f Mon Sep 17 00:00:00 2001 From: drminh2807 Date: Fri, 20 Jun 2025 18:09:22 +0700 Subject: [PATCH 2/2] fix: Adjust maxLength and contentWidth for amount input in MoneyRequestConfirmationList --- src/components/MoneyRequestConfirmationList.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MoneyRequestConfirmationList.tsx b/src/components/MoneyRequestConfirmationList.tsx index 1cdb8444165a..4ae14aea26ba 100755 --- a/src/components/MoneyRequestConfirmationList.tsx +++ b/src/components/MoneyRequestConfirmationList.tsx @@ -673,8 +673,8 @@ function MoneyRequestConfirmationList({ touchableInputWrapperStyle={[styles.ml3]} onFormatAmount={convertToDisplayStringWithoutCurrency} onAmountChange={(value: string) => onSplitShareChange(participantOption.accountID ?? CONST.DEFAULT_NUMBER_ID, Number(value))} - maxLength={formattedTotalAmount.length} - contentWidth={formattedTotalAmount.length * 8} + maxLength={formattedTotalAmount.length + 1} + contentWidth={(formattedTotalAmount.length + 1) * 8} /> ), }));