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.
2 parents c68641a + 5d161aa commit c48d2ffCopy full SHA for c48d2ff
src/index.tsx
@@ -140,7 +140,7 @@ const ReactInputVerificationCode = ({
140
if (!pastedString) return;
141
142
const isNumber = !Number.isNaN(+pastedString);
143
- if (isNumber) setValue(pastedString.split(''));
+ if (isNumber) setValue(pastedString.split('').slice(0, length));
144
};
145
146
codeInput.addEventListener('paste', onPaste);
0 commit comments