mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 04:37:57 +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
|
children: error.children
|
||||||
}
|
}
|
||||||
emits('error', errorEvent)
|
emits('error', errorEvent)
|
||||||
|
} finally {
|
||||||
|
loading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
loading.value = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const disabled = computed(() => props.disabled || loading.value)
|
const disabled = computed(() => props.disabled || loading.value)
|
||||||
|
|||||||
Reference in New Issue
Block a user