Skip to content

Commit

Permalink
fix(components): [form] throw non-validation error (#10255)
Browse files Browse the repository at this point in the history
  • Loading branch information
holazz committed Oct 26, 2022
1 parent 6d839ae commit 4a26aa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/form/src/form.vue
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a26aa4

Please sign in to comment.