Skip to content

va-form method validate() not working on required input + v-if #1644

Answered by asvae
acarval asked this question in Q&A
Discussion options

You must be logged in to vote

Hey.

It's intended behavior :).

You can do validation in a couple of ways, i.e.:

  • Component based - input components do validation. (that's what we use)
  • Form + model based - form would have access to model and all validation rules. Input componens themselves act as triggers.

We're doing some research on validation system, so might end up with some hybrid approach.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@acarval
Comment options

Answer selected by acarval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants