Skip to content

Commit

Permalink
Merge pull request #8953 from Expensify/revert-8591-sn_bug-iouamountp…
Browse files Browse the repository at this point in the history
…age-return-key

Revert "Keep focus on textinput field after pressing enter when button is disabled"
  • Loading branch information
luacmartins authored May 11, 2022
2 parents a0ce5d2 + 75127fc commit 1dca77a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/pages/iou/steps/IOUAmountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ class IOUAmountPage extends React.Component {
this.updateAmount = this.updateAmount.bind(this);
this.stripCommaFromAmount = this.stripCommaFromAmount.bind(this);
this.focusTextInput = this.focusTextInput.bind(this);
this.focusEmptyInput = this.focusEmptyInput.bind(this);

this.state = {
amount: props.selectedAmount,
Expand All @@ -94,16 +93,6 @@ class IOUAmountPage extends React.Component {
this.focusTextInput();
}

/**
* Keep TextInput focused if no amount is entered.
*/
focusEmptyInput() {
if (this.state.amount !== '') {
return;
}
this.textInput.focus();
}

/**
* Focus text input
*/
Expand Down Expand Up @@ -247,7 +236,6 @@ class IOUAmountPage extends React.Component {
value={formattedAmount}
placeholder={this.props.numberFormat(0)}
keyboardType={CONST.KEYBOARD_TYPE.NUMBER_PAD}
onBlur={this.focusEmptyInput}
/>
</View>
<View style={[styles.w100, styles.justifyContentEnd]}>
Expand Down

0 comments on commit 1dca77a

Please sign in to comment.