We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58e8585 commit f89ad00Copy full SHA for f89ad00
src/index.tsx
@@ -100,8 +100,11 @@ const ReactInputVerificationCode = ({
100
};
101
102
const onInputBlur = () => {
103
- setActiveIndex(-1);
+ // https://github.com/ugogo/react-input-verification-code/issues/1
104
+ if (activeIndex === -1) return;
105
+
106
blurItem(activeIndex);
107
+ setActiveIndex(-1);
108
109
110
React.useEffect(() => {
0 commit comments