Skip to content

Commit

Permalink
🐛 Fix focusInput value
Browse files Browse the repository at this point in the history
  • Loading branch information
apollonian committed Oct 31, 2020
1 parent 05428b7 commit ca164e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class OtpInput extends Component<Props, State> {
}

this.setState({ activeInput: nextActiveInput }, () => {
this.focusInput(activeInput);
this.focusInput(nextActiveInput);
this.handleOtpChange(otp);
});
};
Expand Down

0 comments on commit ca164e0

Please sign in to comment.