guilhermerodz / input-otp

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

[BUG] Backspace doesn't work for the first field after starting to delete in the middle #40

Closed blvdmitry closed 7 months ago

blvdmitry commented 7 months ago

Expected Behavior

Input can be cleared completely

Current Behavior

Input keeps the last character filled, navigating to the next item and back fixes this behavior

Steps to Reproduce

https://github.com/guilhermerodz/input-otp/assets/887379/2e7dbda9-0dfc-4c3f-8dcb-9a13a0083fe1

I'm using backspace on the video to delete the characters

Context (Environment)

Just noticed that this happens on the landing page

guilhermerodz commented 7 months ago

hi @blvdmitry thank you so much for reporting this.

that is now solved on b02cee8f95aa92906d6947ec5bf66541b9e66134

however, the CI pipeline is broken (I couldn't tell why) and will publish a new 1.2.4 version on NPM as soon as CI is fixed.

guilhermerodz commented 7 months ago

solved now on 1.2.4, please update latest