Closed sybrendotinga closed 9 months ago
@sybrendotinga, do you mind creating a PR for this?
@sybrendotinga kinda stumbled across the same "issue".
In our case we can get around this by using novalidate, i.e.
<form
style="display: flex; flex-direction: row"
novalidate
@submit.prevent="handleSubmit"
>
<v-otp-input... />
<button type="submit">Submit</button>
</form>
Not sure about your usecase and how you do validation though.
@sybrendotinga, please open a new issue if the solution from @escapedcat doesn't address your issue
Describe the bug The Pattern of the
SingleOtpInput
should change based on theinput-type
prop.letter-numeric
should allowa-zA-Z
as well.To Reproduce Make a component with
input-type
letter-numeric` and type a OTP code that includes letters. The input will become invalid. See: https://github.com/bachdgvn/vue-otp-input/blob/develop/src/components/SingleOtpInput.vue#L10Expected behavior The
letter-numeric
should allow the pattern0-9a-zA-Z
.