Skip to content

Commit

Permalink
Update src/components/ExpensiTextInput/BaseExpensiTextInput.js
Browse files Browse the repository at this point in the history
Co-authored-by: Rory Abraham <[email protected]>
  • Loading branch information
parasharrajat and roryabraham authored Aug 12, 2021
1 parent b40b928 commit 84a9a10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ExpensiTextInput/BaseExpensiTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class BaseExpensiTextInput extends Component {
}

componentDidMount() {
// We are manually managing focus to prevent this issue: https://github.com/Expensify/App/issues/4514
if (this.props.autoFocus && this.input) {
this.input.focus();
}
Expand Down

0 comments on commit 84a9a10

Please sign in to comment.