fix(Form): ensure loading state resets to false after an error (#3359)

Co-authored-by: Romain Hamel <rom.hml@gmail.com>
This commit is contained in:
Ali Hardan
2025-02-19 22:09:50 +03:30
committed by GitHub
parent ca659bd6ed
commit 19d76c8b75

View File

@@ -211,9 +211,9 @@ async function onSubmitWrapper(payload: Event) {
children: error.children
}
emits('error', errorEvent)
} finally {
loading.value = false
}
loading.value = false
}
const disabled = computed(() => props.disabled || loading.value)