-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature
Allow to pass multiple modes to validateMode, for example:
const Comp = defineComponent({
setup() {
const { register } = useForm({
initialValues: {
name: '',
},
validateMode: ['blur', 'change', 'input'],
validate,
onSubmit: noop,
});
const { value, attrs } = register('name');
return { value, attrs };
},
template: `
<input v-model="value" v-bind="attrs">
`,
});
Allow to pass multiple modes to reValidateMode, for example:
const Comp = defineComponent({
setup() {
const { register } = useForm({
initialValues: {
name: '',
},
reValidateMode: ['blur', 'change', 'input'],
validate,
onSubmit: noop,
});
const { value, attrs } = register('name');
return { value, attrs };
},
template: `
<input v-model="value" v-bind="attrs">
`,
});
Additional information
- Would you be willing to help implement this feature?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request