Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/pages/iou/steps/MoneyRequestAmountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class MoneyRequestAmountPage extends React.Component {
* @param {String} key
*/
updateAmountNumberPad(key) {
if (!this.textInput.isFocused()) {
if (this.state.shouldUpdateSelection && !this.textInput.isFocused()) {

@abdulrahuman5196 abdulrahuman5196 May 23, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice that you have incorporated the suggestion as well #19226 (comment) 👍

this.textInput.focus();
}

Expand Down Expand Up @@ -261,6 +261,9 @@ class MoneyRequestAmountPage extends React.Component {
*/
updateLongPressHandlerState(value) {
this.setState({shouldUpdateSelection: !value});
if (!value && !this.textInput.isFocused()) {
this.textInput.focus();
}
}

/**
Expand Down