shadcn-admin icon indicating copy to clipboard operation
shadcn-admin copied to clipboard

[BUG]: Flicking on OTP form

Open connectaryal opened this issue 9 months ago • 1 comments

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:

  1. Go to 'https://shadcn-admin.netlify.app/otp'
  2. Click on 'OTP Form fieds'
  3. Enter values.
  4. 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

connectaryal avatar Mar 03 '25 04:03 connectaryal

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!

PerryCodes avatar Mar 03 '25 23:03 PerryCodes

Thank you @satnaing for the fix!

connectaryal avatar Apr 16 '25 10:04 connectaryal

Thanks for pointing out the issue too. @connectaryal

satnaing avatar Apr 16 '25 12:04 satnaing