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
Hi, so I have a dynamic required property on the validation. It has to be optional, so it depends on an external model value
But when the value is empty and required: false, $error seems to be set to true. This messes up the form error highlighting in my projects
So 2 cases are wrong:
When $model: "" and required: false ($error will show as true)
1.a Also when $model is not "", required will turn to true? Why is that?
When $model:"" and required: true ($error will show as false although it should be true, cause it is required)
Make sure that you are familiar with documentation before submitting an issue.
https://vuelidate.netlify.com/
Describe the bug
Hi, so I have a dynamic
required
property on the validation. It has to be optional, so it depends on an external model valueBut when the value is empty and
required: false
,$error
seems to be set to true. This messes up the form error highlighting in my projectsSo 2 cases are wrong:
$model: ""
andrequired: false
($error will show as true)1.a Also when
$model
is not""
,required
will turn to true? Why is that?$model:""
andrequired: true
($error will show as false although it should be true, cause it is required)Reproduction URL
I have a small sandbox here:
https://jsfiddle.net/2seokxmf/1/
Vuelidate Template
Issues without a working fiddle are generally much harder to solve and usually take much more time to actually do it.
To Reproduce
Steps to reproduce the behavior:
Type in the textbox and toggle the checkbox
The text was updated successfully, but these errors were encountered: