guilhermerodz / input-otp

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

Feature reaquest: autofFocus to focus on 1st slot after component mounts #9

Closed zohaibakber closed 5 months ago

zohaibakber commented 5 months ago

I think there should be a prop that makes focus on 1st slot by default like autoFocus in input element.

guilhermerodz commented 5 months ago

Autofocus is now triggering UI update asap.

Fixed by commit 49f37f127ef96c88aeac52e065f741686157bc49