ejirocodes / vue3-otp-input

🐗 A fully customisable OTP input component for Vue 3.x
https://npm.im/vue3-otp-input
116 stars 25 forks source link

feat: add shouldFocusOrder for auto correct the input order and clean remain value #39

Closed Gemerz closed 9 months ago

Gemerz commented 1 year ago

Hello, When our company tester found a bug which is when user input a character is not the first or the last, after fill the remains , actually, the last character seem has fill, but the last item of the variable opt-value array is get the value or empty.

so I create a fuction focusOrder to clear the value when user input fill not by the asc order after, and add shouldFocusOrder prop flag to the component, so can when is need. Is can avoid that bug.

targetlucked69 commented 9 months ago

dont thinks this package is maintained tbh

ejirocodes commented 9 months ago

Thanks for getting this done @Gemerz