Skip to content

Touch all fields on submit OR validate only fields that got blurred #29

Description

@christianlmc

Describe the feature

Right now, when you set validateMode: 'blur' on useForm() ALL fields from the form get validated on blur.

So this is what I did in order to fix it:

<span v-show="touched.email">{{ errors.email }}</span>

However, by doing this, when you submit the form no message shows up, because none of the fields have been touched.

Ideally I would like to either have blur only trigger validation on the blurred field OR make form submission touch all fields

Additional information

  • Would you be willing to help implement this feature?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions