Skip to content

Commit

Permalink
Merge pull request #42237 from nkdengineer/fix/42207
Browse files Browse the repository at this point in the history
[CP Staging] fix Split amount is not selected

(cherry picked from commit 1f840cb)
  • Loading branch information
Beamanator authored and OSBotify committed May 16, 2024
1 parent 683c00c commit 45942c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/MoneyRequestAmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ function MoneyRequestAmountInput(
touchableInputWrapperStyle={props.touchableInputWrapperStyle}
maxLength={maxLength}
hideFocusedState={hideFocusedState}
onMouseDown={(event) => event.stopPropagation()}
/>
);
}
Expand Down
5 changes: 5 additions & 0 deletions src/components/TextInputWithCurrencySymbol/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ type TextInputWithCurrencySymbolProps = {
*/
onBlur?: ((e: NativeSyntheticEvent<TextInputFocusEventData>) => 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;

Expand Down

0 comments on commit 45942c8

Please sign in to comment.