fix access to form in checkValidity

This commit is contained in:
Girish Ramakrishnan
2025-12-05 17:36:48 +01:00
parent 620974217a
commit c8842cc71f
11 changed files with 23 additions and 22 deletions
@@ -37,7 +37,7 @@ const password = ref('');
const form = useTemplateRef('form');
const isFormValid = ref(false);
function checkValidity() {
isFormValid.value = form.value.checkValidity();
isFormValid.value = form.value ? form.value.checkValidity() : false;
}
async function onSubmit() {