From ca164e0aea4c5e2051645754900314eb064d91dc Mon Sep 17 00:00:00 2001 From: Abhishek Warokar Date: Sat, 31 Oct 2020 16:00:40 +0530 Subject: [PATCH] :bug: Fix focusInput value --- src/lib/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); };