From 75127fcfb9ea40f630a5c2e26b096975992d81de Mon Sep 17 00:00:00 2001 From: Chirag Chandrakant Salian Date: Wed, 11 May 2022 14:36:30 -0700 Subject: [PATCH] Revert "Keep focus on textinput field after pressing enter when button is disabled" --- src/pages/iou/steps/IOUAmountPage.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pages/iou/steps/IOUAmountPage.js b/src/pages/iou/steps/IOUAmountPage.js index fd415c7b6913..5ebccbbcb6ee 100755 --- a/src/pages/iou/steps/IOUAmountPage.js +++ b/src/pages/iou/steps/IOUAmountPage.js @@ -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, @@ -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 */ @@ -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} />