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 331b2f4 + 60e76f7 commit dc84816Copy full SHA for dc84816
src/hooks/use-text-input-otp.tsx
@@ -50,6 +50,8 @@ export function TextInputOTPProvider({
50
51
if (text.length === maxLength) {
52
onFilled?.(text);
53
+ setCurrentIndex(text.length - 1);
54
+ return;
55
}
56
57
if (text.length < maxLength) {
0 commit comments