Skip to content

Vue3 Vee Validate Import Custom Global Rules Issue #3426

Answered by logaretm
erdemgonul asked this question in Q&A
Discussion options

You must be logged in to vote

You have bound the rules prop to non-existing required property which is a common mistake, you need to pass required as a string

So either:

<Field name="field" class="bg-gray-300 text-white" rules="required" />

or This:

<Field name="field" class="bg-gray-300 text-white" :rules="'required'" />

Replies: 3 comments 3 replies

Comment options

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

Answer selected by logaretm
Comment options

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

Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #3425 on July 31, 2021 15:08.