Skip to content

Commit

Permalink
fix(Form): maintain other errors when using setErrors with a path (#…
Browse files Browse the repository at this point in the history
…1818)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
  • Loading branch information
romhml and benjamincanac committed Jun 3, 2024
1 parent 3ebff4d commit 06990be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/runtime/components/forms/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export default defineComponent({
validate,
errors,
setErrors (errs: FormError[], path?: string) {
errors.value = errs
if (path) {
errors.value = errors.value.filter(
(error) => error.path !== path
Expand Down

0 comments on commit 06990be

Please sign in to comment.