diff --git a/packages/ui/src/composables/useForm/useForm.ts b/packages/ui/src/composables/useForm/useForm.ts index a2fc0e4fa8..7100520136 100644 --- a/packages/ui/src/composables/useForm/useForm.ts +++ b/packages/ui/src/composables/useForm/useForm.ts @@ -28,6 +28,7 @@ export const useForm = (ref: string | Ref form.value?.isValid || false), + immediate: computed(() => form.value?.immediate || false), isLoading: computed(() => form.value?.isLoading || false), isDirty: computed(() => form.value?.isDirty || false), fields: computed(() => form.value?.fields ?? []), @@ -37,9 +38,7 @@ export const useForm = (ref: string | Ref form.value?.errorMessages || []), errorMessagesNamed: computed(() => form.value?.errorMessagesNamed || {}), validate: () => form.value?.validate(), - reset: () => { - form.value?.reset() - }, + reset: () => form.value?.reset(), resetValidation: () => form.value?.resetValidation(), focus: () => form.value?.focus(), focusInvalidField: () => form.value?.focusInvalidField(),