Skip to content

Commit

Permalink
Merge pull request #16394 from narefyev91/auto-focus-on-field-if-miss…
Browse files Browse the repository at this point in the history
…ing-num-pad-click

Autofocus Amount field if suddenly loose focus
  • Loading branch information
mountiny authored Mar 23, 2023
2 parents fb90cd8 + f830783 commit e1e2759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/iou/steps/IOUAmountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ class IOUAmountPage extends React.Component {
* @param {String} key
*/
updateAmountNumberPad(key) {
this.focusTextInput();

// Backspace button is pressed
if (key === '<' || key === 'Backspace') {
if (this.state.amount.length > 0) {
Expand Down

0 comments on commit e1e2759

Please sign in to comment.