mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user