fix access to form in checkValidity
This commit is contained in:
@@ -49,7 +49,7 @@ const autoCreate = ref(false);
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user