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 53fb9a3 commit 60e76f7Copy full SHA for 60e76f7
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