You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If an input has a maxlength attribute, there will be issues.
I found that issue when I was integrating vee-validate with my custom input, form and so on.
Let's take this component as our <MyInput /> component
I'm supposed to have error message if my input is empty or has less than 5 characters.
However, validation will only works for the required option and when it's triggered the error will still remain.
Versions
Describe the bug
If an input has a maxlength attribute, there will be issues.
I found that issue when I was integrating vee-validate with my custom input, form and so on.
Let's take this component as our
<MyInput />
componentand this one as
<MyForm />
Now, a custom form component
I'm supposed to have error message if my input is empty or has less than 5 characters.
However, validation will only works for the
required
option and when it's triggered the error will still remain.To reproduce
Link to a codesandbox with the issue
https://codesandbox.io/s/winter-firefly-7ekz2
min:5
rule, we should have an error but we don'tDesktop (please complete the following information):
TL.DR:
It seems that the
maxlength
attribute on inputs can break validationThe text was updated successfully, but these errors were encountered: