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
I have a field that only has server-side validation. To oblige with vuelidate rules, the field is defined in the rules object, but has an empty object assigned (no validators). When returning validations from the server and applying them to $externalResults, as per the documentation, the validation errors are not displayed for this particular field, while still showing for other fields with rules
Click the submit button and see that external results are only applied to the first field (which has rules defined)
Expected behavior
External results validations should be applied to all fields, even if they don't have a client-side rule defined.
Additional context
As a workaround, I've added a placebo rule that always returns true to make things work, but I shouldn't have to and it took me long to figure out this was the reason. If that's the intended behaviour, it should be documented.
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a field that only has server-side validation. To oblige with vuelidate
rules
, the field is defined in therules
object, but has an empty object assigned (no validators). When returning validations from the server and applying them to$externalResults
, as per the documentation, the validation errors are not displayed for this particular field, while still showing for other fields with rulesReproduction URL
https://stackblitz.com/edit/vitejs-vite-wbmiw8?file=src%2FApp.vue
To Reproduce
Expected behavior
Additional context
As a workaround, I've added a
placebo
rule that always returns true to make things work, but I shouldn't have to and it took me long to figure out this was the reason. If that's the intended behaviour, it should be documented.The text was updated successfully, but these errors were encountered: