mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [form] throw non-validation error (#10255)
This commit is contained in:
@@ -129,6 +129,8 @@ const validateField: FormContext['validateField'] = async (
|
||||
}
|
||||
return result
|
||||
} catch (e) {
|
||||
if (e instanceof Error) throw e
|
||||
|
||||
const invalidFields = e as ValidateFieldsError
|
||||
|
||||
if (props.scrollToError) {
|
||||
|
||||
Reference in New Issue
Block a user