Fix validation of "Services" Settings tab.
This commit is contained in:
parent
a3fd4c5da0
commit
48bf6352f4
|
@ -38,6 +38,9 @@ const {form, resetForm, v$} = useVuelidateOnForm(
|
|||
},
|
||||
{
|
||||
emailAddress: null
|
||||
},
|
||||
{
|
||||
$stopPropagation: true
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import useVuelidate from "@vuelidate/core";
|
||||
import {useResettableForm} from "~/components/Form/UseResettableForm";
|
||||
|
||||
export function useVuelidateOnForm(validations, blankForm) {
|
||||
export function useVuelidateOnForm(validations, blankForm, options = {}) {
|
||||
const {form, resetForm: parentResetForm} = useResettableForm(blankForm);
|
||||
|
||||
const v$ = useVuelidate(validations, form);
|
||||
const v$ = useVuelidate(validations, form, options);
|
||||
|
||||
const resetForm = () => {
|
||||
v$.value.$reset();
|
||||
|
|
Loading…
Reference in New Issue