Skip to content
Discussion options

You must be logged in to vote

This is not an issue. More of a question so I moved it to the discussions section.

Well your condition is !v && "required!"

So whenever v is truthy it will evaluate to false and will then short-circuit to false. Since that's not an error message then is not valid will be displayed because it is the default.

So you need to change your logic, this might give you what you want.

(v ? true : "required!")

https://codesandbox.io/s/custom-text-input-with-vee-validate-v4-forked-u6xonp?file=/src/App.vue:1085-1109

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
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
1 participant
Converted from issue

This discussion was converted from issue #3866 on August 01, 2022 21:25.