Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm confused on nested validations #1020

Open
wishinghand opened this issue Apr 6, 2022 · 0 comments
Open

I'm confused on nested validations #1020

wishinghand opened this issue Apr 6, 2022 · 0 comments

Comments

@wishinghand
Copy link

If I have a component like so:

<template>
    <FormA />
    <FormB />
    
   <p v-for="error of form.$errors">
      {{ error.$message }}
   </p>

</template>

<script setup>
const form = useValidation();
</script>

I'm unsure of how to bubble up the errors to be collected in the top level useValidation instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant