diff --git a/src/lib/index.jsx b/src/lib/index.jsx index 6cd6218e..496e1b18 100644 --- a/src/lib/index.jsx +++ b/src/lib/index.jsx @@ -250,7 +250,7 @@ class OtpInput extends Component { } this.setState({ activeInput: nextActiveInput }, () => { - this.focusInput(activeInput); + this.focusInput(nextActiveInput); this.handleOtpChange(otp); }); };