From cb11999d2c3f71aa27125f495011060e124a8708 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Thu, 16 May 2024 08:47:48 +0700 Subject: [PATCH] fix Split amount is not selected --- 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;