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
When I use $each: helpers.forEach({, I must follow the structure of child models.
Throws error If the tested prop is missing.
If I do the same in the root, it's fine.
This is because the forEach helper iterates over the data and all of it's properties, rather than iterating over the rules, and building the state up, for each validator.
This should be easy enough to change in the forEach.js helper, I am just not sure whether that is the right thing to do. Its technically a breaking change.
When I use
$each: helpers.forEach({
, I must follow the structure of child models.Throws error If the tested prop is missing.
If I do the same in the root, it's fine.
DEMO:
see console
https://stackblitz.com/edit/vitejs-vite-brtsmn?file=src%2FApp.vue&terminal=dev
The text was updated successfully, but these errors were encountered: