srcdev-nuxt-forms 2.1.20 → 2.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -110,7 +110,6 @@ const useZodValidation = (formSchema: any, formRef: Ref<HTMLFormElement | null>)
|
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
const scrollToFirstError = async () => {
|
|
113
|
-
await nextTick();
|
|
114
113
|
if (formRef.value) {
|
|
115
114
|
const firstErrorElement = formRef.value.querySelector('[aria-invalid=true]');
|
|
116
115
|
window.scrollTo({
|
|
@@ -139,7 +138,6 @@ const useZodValidation = (formSchema: any, formRef: Ref<HTMLFormElement | null>)
|
|
|
139
138
|
pushCustomErrors,
|
|
140
139
|
doZodValidate,
|
|
141
140
|
fieldMaxLength,
|
|
142
|
-
formRef,
|
|
143
141
|
scrollToFirstError,
|
|
144
142
|
scrollToFormHead,
|
|
145
143
|
};
|
package/package.json
CHANGED