From 45942c8d2d5410f55285dfe211e187411ad3f453 Mon Sep 17 00:00:00 2001 From: Alex Beaman Date: Thu, 16 May 2024 13:50:15 +0300 Subject: [PATCH] Merge pull request #42237 from nkdengineer/fix/42207 [CP Staging] fix Split amount is not selected (cherry picked from commit 1f840cbab127307ef934382babc946238c22a4f3) --- src/components/MoneyRequestAmountInput.tsx | 1 + src/components/TextInputWithCurrencySymbol/types.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/components/MoneyRequestAmountInput.tsx b/src/components/MoneyRequestAmountInput.tsx index a59b50e5bdb7..9acd73beadba 100644 --- a/src/components/MoneyRequestAmountInput.tsx +++ b/src/components/MoneyRequestAmountInput.tsx @@ -285,6 +285,7 @@ function MoneyRequestAmountInput( touchableInputWrapperStyle={props.touchableInputWrapperStyle} maxLength={maxLength} hideFocusedState={hideFocusedState} + onMouseDown={(event) => event.stopPropagation()} /> ); } diff --git a/src/components/TextInputWithCurrencySymbol/types.ts b/src/components/TextInputWithCurrencySymbol/types.ts index b31f27aef786..27c8498f253c 100644 --- a/src/components/TextInputWithCurrencySymbol/types.ts +++ b/src/components/TextInputWithCurrencySymbol/types.ts @@ -32,6 +32,11 @@ type TextInputWithCurrencySymbolProps = { */ onBlur?: ((e: NativeSyntheticEvent) => void) | undefined; + /** + * Callback that is called when the text input is pressed down + */ + onMouseDown?: ((e: React.MouseEvent) => void) | undefined; + /** Whether the currency symbol is pressable */ isCurrencyPressable: boolean;