guilhermerodz / input-otp

One time passcode Input. Accessible & unstyled.
https://input-otp.rodz.dev
MIT License
2.35k stars 47 forks source link

Support alphanumeric entries #54

Closed iamevansobeng closed 1 week ago

iamevansobeng commented 1 month ago

Is your feature request related to a problem? Please describe. On desktop, it works when a regex pattern for alphanumeric is added as a prop but doesn't work for mobile. A client pointed it out and it took me way too long to find it since I was debugging on my laptop and not on an actual mobile device

Describe the solution you'd like A simple prop for the type of input, preferably an enum "numeric" | "alphanumeric" | "alpha"

Describe alternatives you've considered I had a workaround to fix the issue however I noticed you have pending pull requests so I didn't bother creating another.

schwjustin commented 1 month ago

^

guilhermerodz commented 1 month ago

hey @iamevansobeng is that a duplicate of #56? If so, please check the reply I wrote there

guilhermerodz commented 1 week ago

Duplicate of https://github.com/guilhermerodz/input-otp/issues/56 (most likely)

There's a fix over there, check it out