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
@@ -54,7 +54,7 @@ function usesPasswordAuth(provider) {
const form = useTemplateRef('form');
const isFormValid = ref(false);
function checkValidity() {
isFormValid.value = form.value.checkValidity();
isFormValid.value = form.value ? form.value.checkValidity() : false;
}
function onProviderChange() {
@@ -97,6 +97,8 @@ async function onShowDialog() {
}
async function onSubmit() {
if (!form.value.reportValidity()) return;
busy.value = true;
formError.value = '';