Trigger immediate validation on render #4479
Replies: 1 comment
-
I guess this is the answer, in case it helps someone. If you use the useField hook, you can trigger immediate validation onMounted like this onMounted(() => {
if (props.immediateValidation == true) {
value.value = props.modelValue
}
}) It is actually documented here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am refactoring our Electron App to vue3 and vee-validate v4. Is there a way to manually trigger validation when using the composition API? I built a custom TextInput based on Bootstrap Vue Next, implemented the interaction modes as per example but am missing a hint on how to implement a functionality for immediate validation after mounting. In v3, there was property "immediate" on validationProvider. I haven't the faintest clue how to replicate this functionality with the custom field...
Code Vue3:
Beta Was this translation helpful? Give feedback.
All reactions