[BUG]: Flicking on OTP form
Describe the bug When you are redirected to the OTP page and enter the OTP with the number and chars, the field starts flickering continuously.
To Reproduce Steps to reproduce the behavior:
- Go to 'https://shadcn-admin.netlify.app/otp'
- Click on 'OTP Form fieds'
- Enter values.
- See error (If error not appear, clear OTP and re-enter with some text and some number)
Expected behavior The OTP throws an error when both characters and numbers are filled in.
Screenshots https://github.com/user-attachments/assets/e813a44f-8434-43af-b7e2-8b9665a2e6da
To be clear - you must enter values "quickly". This is clearly timing-related because I don't get the flickering when the values are entered "slowly". What constitutes quickly and slowly is of little consequence, due to them being meaningless values - the user should obviously be allowed to enter the values however fast they wish!
Thank you @satnaing for the fix!
Thanks for pointing out the issue too. @connectaryal